2
0
mirror of https://github.com/tenrok/axios.git synced 2026-05-24 14:04:14 +03:00
Commit Graph

310 Commits

Author SHA1 Message Date
Anatoly Ryabov 81eaa3db4c Fixing building url with hash mark (#1771)
This commit fix building url with hash map (fragment identifier) when parameters are present: they must not be added after `#`, because client cut everything after `#`
2018-09-04 09:53:57 +02:00
Rikki Gibson 21ae22dbd3 Preserve HTTP method when following redirect (#1758)
Resolves #1158

This modifies http.js to uppercase the HTTP method, similar to xhr.js, before passing the request off to the transport. This causes follow-redirects to preserve the HTTP method when automatically making a request to the next URL.
2018-08-27 17:26:38 +02:00
Ayush Gupta b681e919c4 Adding isAxiosError flag to errors thrown by axios (#1419) 2018-08-20 11:02:23 +02:00
Anthony Gauthier 4f98acc578 Add getUri method (#1712)
* Added getUri method

* Removed usage of "url"

* added method to README
2018-08-07 11:52:30 -06:00
Chance Dickson 38de25257c Adding support for no_proxy env variable (#1693)
* Adding support for no_proxy env variable

* Adds support for the no_proxy environment variable commonly available
  with programs supporting the http_proxy/https_proxy environment
  variables.
* Adds tests to test the no_proxy environment variable.

* Adding documentation for the proxy env variables

* Adds documentation to README.md for the supported, conventional
  http_proxy, https_proxy, and no_proxy environment variables.
2018-08-07 11:52:04 -06:00
Tim Johns 6b44e80ade Added toJSON to decorated Axios errors to faciliate serialization (#1625) 2018-08-06 23:33:55 -06:00
Jacob Wejendorp b4c5d35d28 Fixing accept header normalization (#1698)
Fixes override behavior for `accept` header, when case does not match
the one used in defaults.js
2018-08-06 23:25:23 -06:00
Rikki Gibson 503418718f Remove XDomainRequest special status handling 2018-08-06 09:56:51 +02:00
Rikki Gibson a9831131c3 Remove HTTP 1223 handling
The 1223 error was fixed in IE 10. See https://blogs.msdn.microsoft.com/ieinternals/2012/03/01/internet-explorer-10-consumer-preview-minor-changes-list/
2018-08-06 09:56:51 +02:00
Rikki Gibson e9c481fa5e Delete btoa polyfill 2018-08-06 09:56:51 +02:00
Rikki Gibson 5c754e6e07 Remove ie8/9 special CORS treatment and btoa polyfill 2018-08-06 09:56:51 +02:00
Khaled Garbaya 7d9a29ee4c Fixing http adapter to allow HTTPS connections via HTTP (#959) 2018-07-04 23:51:11 -07:00
Mark van den Broek 787c808c04 Fix: Removes usage of deprecated Buffer constructor. (#1555) (#1622) 2018-07-04 23:47:17 -07:00
arpit 405fe690f9 Fix:Closing curly braces 2018-06-19 14:59:57 +02:00
arpit 8cb7d667fb [NS]: Send false flag isStandardBrowserEnv for Nativescript 2018-06-19 14:59:57 +02:00
Tim Garthwaite 0b3db5d87a Fixing defaults to use httpAdapter if available (#1285)
* Fixing defaults to use httpAdapter if available
* Use a safer, cross-platform method to detect the Node environment
2018-04-11 09:23:38 -06:00
Nick Uraltsev ec97c686ef Merge pull request #1395 from codeclown/instance-options
Fixing #385 - Keep defaults local to instance
2018-04-10 15:28:12 -07:00
Martti Laine 4e8039ef65 Remember socketPath in mergeConfig 2018-04-10 22:29:02 +02:00
Martti Laine 143bbbe1b9 Spec for mergeConfig, finalize logic 2018-04-07 15:54:56 +02:00
Martti Laine ff61caacb7 Slight refactor/namings/comment on mergeConfig 2018-04-07 13:40:21 +02:00
Justin Beckwith 22c2baf205 chore: upgrade eslint and add fix command 2018-04-06 21:50:26 -07:00
Martti Laine b1c378606f Prevent undefined values in mergeConfig 2018-04-03 22:29:15 +02:00
Martti Laine 6083d639c5 Rename mergeConfig arguments 2018-04-03 22:19:19 +02:00
Martti Laine 82030ae054 Use deepMerge in deepMerge 2018-04-03 21:53:17 +02:00
Martti Laine 72c66dfdec Refactor and introduce deepMerge 2018-03-23 20:21:02 +01:00
Justin Beckwith c65065ac0f capture errors on request data streams 2018-03-15 22:12:42 -07:00
Nick Uraltsev 9a6abd789f Merge pull request #869 from johntron/master
Adds option to specify character set in responses (with http adapter)
2018-03-10 09:13:04 -08:00
Martti Laine d1154eae3f Merge branch 'instance-options' of github.com:codeclown/axios into instance-options 2018-03-09 13:58:35 +02:00
Martti Laine d78204712a Clean up PR 2018-03-09 13:58:08 +02:00
Nick Uraltsev 4fbf084674 Merge pull request #1040 from pbarbiero/pbarbiero/improved-timeout-handling
Decorate resolve and reject to clear timeout in all cases
2018-03-08 09:35:58 -08:00
mattridley 762044e453 Fixing #537 Rejecting promise if request is cancelled by the browser 2018-03-05 16:11:55 +00:00
Martti Laine 0445d6c39e Merge branch 'master' into instance-options 2018-03-02 12:32:47 +02:00
Martti Laine 5bfd2ea9f6 Fixing #385 - Keep defaults local to instance 2018-03-02 12:31:15 +02:00
Emily Morehouse b6920570c5 Merge branch 'master' into bugfix/allow-method-in-instance-config 2018-02-19 23:33:44 -07:00
Emily Morehouse 5b2ea2e54c Merge pull request #1364 from MiguelMadero/mmadero/documents-timeout
Documents default
2018-02-17 09:28:47 -07:00
Emily Morehouse 23ba29602c Merge pull request #1342 from alpancs/instance-bug-fix
fix cannot send post method
2018-02-16 19:58:48 -07:00
Emily Morehouse ccc78899bb Merge pull request #1070 from Starfox64/master
Adding support for UNIX Sockets
2018-02-16 17:05:48 -07:00
MiguelMadero f7310ca083 Documents the timeout default 2018-02-14 17:49:39 -08:00
Alfan Nur Fauzan 7a355ff432 fix cannot send post method 2018-02-07 12:47:24 +07:00
Tim Garthwaite 89bf42b946 Fix typo 2018-01-11 12:54:29 -05:00
Tim Garthwaite e452f761f7 Don't set maxBodyLength in follow-redirects if maxContentLength is -1 2018-01-11 10:44:40 -05:00
Tim Garthwaite bbfa7bfacc Fixing maxBodyLength exceeded error form follow-redirects when axios's maxContentLength is not exceeded 2018-01-11 08:55:02 -05:00
刘涛 a1e895d670 Update buildURL.js
Two if statements is unnecessary, we can replace with "if ... else ..."
2017-11-23 16:22:55 +08:00
Nick Uraltsev b7d8d126da Removing unnecessary condition 2017-11-11 15:09:02 -08:00
Andrew J. Pierce 468e90993d Move window defined check before window.XMLHttpRequest check 2017-11-02 18:57:12 -04:00
Clark Du 63548c00c0 refactor: !isArray(obj) is always true 2017-11-01 15:47:58 +08:00
Nick Uraltsev fbb5d4d0d1 Merge pull request #1080 from MarshallOfSound/patch-1
Allow overriding the used transport
2017-10-24 07:58:13 -07:00
ahmed ayoub 6566598603 allowing default method for an instance 2017-10-10 21:17:37 +02:00
Nick Uraltsev 26b06391f8 Update links 2017-09-28 21:09:47 -07:00
Nick Uraltsev 17e44c8ec9 Merge pull request #982 from ibci/use-XMLHttpRequest-for-IE10+
Use XMLHttpRequest in IE10+ instead of XDomainRequest
2017-09-27 21:22:09 -07:00