1. 08 1月, 2020 1 次提交
  2. 26 12月, 2019 2 次提交
  3. 09 12月, 2019 3 次提交
  4. 27 11月, 2019 1 次提交
  5. 18 11月, 2019 1 次提交
  6. 16 11月, 2019 1 次提交
  7. 08 11月, 2019 1 次提交
  8. 04 11月, 2019 5 次提交
  9. 25 10月, 2019 2 次提交
  10. 22 10月, 2019 1 次提交
  11. 16 10月, 2019 4 次提交
  12. 09 10月, 2019 1 次提交
  13. 04 10月, 2019 1 次提交
  14. 29 9月, 2019 1 次提交
  15. 26 9月, 2019 3 次提交
    • J
      Make redirection from HTTP to HTTPS work (#2426) · 00cd4802
      Jeremie Thomassey 提交于
      When calling an HTTP resource redirecting to a HTTPS one with a keepAlive agent. We get the following error:
      ```
      TypeError [ERR_INVALID_PROTOCOL]: Protocol "https:" not supported. Expected "http:"
          at new ClientRequest (_http_client.js:119:11)
          at Object.request (https.js:281:10)
          at RedirectableRequest._performRequest (/Users/jthomassey/projects/ecom-shop-web/node_modules/follow-redirects/index.js:169:24)
          at RedirectableRequest._processResponse (/Users/jthomassey/projects/ecom-shop-web/node_modules/follow-redirects/index.js:260:10)
          at ClientRequest.RedirectableRequest._onNativeResponse (/Users/jthomassey/projects/ecom-shop-web/node_modules/follow-redirects/index.js:50:10)
          at Object.onceWrapper (events.js:277:13)
          at ClientRequest.emit (events.js:189:13)
          at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:556:21)
          at HTTPParser.parserOnHeadersComplete (_http_common.js:109:17)
          at Socket.socketOnData (_http_client.js:442:20)
      ```
      
      This can be tested here : 
      ```
      const http = require('http');
      const https = require('https');
      const axios = require('axios');
      
      axios.get('http://www.photobox.fr', { httpAgent: http.Agent({ keepAlive:true }), httpsAgent: https.Agent({ keepAlive:true }) })
        .then(response => {
          console.log(response);
          console.log(response.headers);
        })
        .catch(error => {
          console.log(error);
        });
      ```
      
      Axios delegate the redirection to the follow-redirect package which accept an option `agents` for both http and https agent see : https://github.com/follow-redirects/follow-redirects#per-request-options
      00cd4802
    • T
      Add toJSON property to AxiosError type (#2427) · 006b6042
      Tiago Rodrigues 提交于
      I noticed the error object has a `toJSON` method but when I tried to use it in my typescript code it complained it didn't exist, even though I was using the `AxiosError` type.
      006b6042
    • J
      Fix word 'sintaxe' to 'syntax' in README.md (#2432) · 88dbb82d
      Jihwan Oh 提交于
      - translate 'sintaxe' word from portuguese to english
      88dbb82d
  16. 16 9月, 2019 1 次提交
  17. 13 9月, 2019 8 次提交
  18. 07 9月, 2019 3 次提交