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

834 Commits

Author SHA1 Message Date
Ken Powers 75c8b3f146 Allow uppercase methods in typings. (#1781) 2018-09-17 18:25:07 +02:00
Manoel 81f0d28eb5 Fixing .eslintrc without extension (#1789) 2018-09-17 16:24:46 +02:00
Ali Servet Donmez a74ab87df2 Consistent coding style (#1787) 2018-09-17 16:19:34 +02:00
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
Ben Standefer 9005a54a8b Clarify in README that default timeout is 0 (no timeout) (#1750)
Clarify in README that default timeout is 0 (no timeout)
2018-08-22 22:10:40 -06:00
Alexander Trauzzi 7db0494579 Add getUri signature to TypeScript definition. (#1736)
* Add `getUri` signature to TypeScript definition.

This is in support of #1624.

* Make configuration optional.
2018-08-21 08:24:53 -06:00
Ayush Gupta b681e919c4 Adding isAxiosError flag to errors thrown by axios (#1419) 2018-08-20 11:02:23 +02:00
Emily Morehouse c0b40650d1 Fix failing SauceLabs tests by updating configuration
- Remove code coverage from SauceLabs CI, as it causes tests to hang.
- Update Safari browser tests to handle Safari 9-11 with proper OS
settings
2018-08-10 12:36:53 -06:00
Emily Morehouse 527381198e Releasing 0.19.0-beta.1 2018-08-09 12:39:17 -06:00
Emily Morehouse 56ac637d7d Update changelog for 0.19.0-beta.1 release 2018-08-09 12:35:34 -06: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
Steven b9f68bdf00 Add badge to display install size (#1538) 2018-08-06 23:41:21 -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
Nicolas Del Valle 90add808a4 Update README.md (#1709) 2018-08-06 23:19:01 -06:00
Dave Stewart 6a414cb9a3 Update ECOSYSTEM.md (#1690)
Add Axios Actions package
2018-08-06 23:18:16 -06:00
Benedikt Rötsch 0b4e70d2ba adjust README to match IE support 2018-08-06 10:07:51 +02:00
Rikki Gibson 503418718f Remove XDomainRequest special status handling 2018-08-06 09:56:51 +02:00
Rikki Gibson 33747ee8fb Remove usages of isOldIE in tests 2018-08-06 09:56:51 +02:00
Rikki Gibson 7b6f541e9d Remove IE10 launcher from karma config 2018-08-06 09:56:51 +02:00
Rikki Gibson 962c38b2a6 Remove isOldIE check in tests 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 1c2881cbe6 Remove btoa polyfill tests 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
Rikki Gibson 0bb9aaf726 Remove ie9 custom launcher 2018-08-06 09:56:51 +02:00
Justin Beckwith 98080381fa test: use mocha instead of nodeunit (#1655) 2018-07-05 22:41:13 -07:00
Anthony Gauthier 0c4bf3cdbd Added axios-curlirize (#1653)
* Added axios-curlirize to Ecosystem documentation
2018-07-05 12:08:41 -06:00
Jim Lynch ef2240a666 Update README.md (#1484)
adding in the necessary require statement (in nodejs).
2018-07-05 08:02:41 -07:00
Khaled Garbaya 7d9a29ee4c Fixing http adapter to allow HTTPS connections via HTTP (#959) 2018-07-04 23:51:11 -07:00
Sako Hartounian 84388b0389 cleaner definitions with union types. (#1551) 2018-07-04 23:48:07 -07:00
Mark van den Broek 787c808c04 Fix: Removes usage of deprecated Buffer constructor. (#1555) (#1622) 2018-07-04 23:47:17 -07:00
Guillaume Briday d74238e151 Adding second then on axios call (#1623)
Inspired by this issue : https://github.com/axios/axios/issues/792#issuecomment-289306590
2018-07-01 20:10:04 -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
Stephan Schneider 73cab975f0 typings: allow custom return types
response interceptor might change the type from AxiosResponse to anything they like
2018-06-18 10:48:29 +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
Martti Laine 961ecd129c Correctly catch exception in http test (#1475) 2018-04-11 09:23:01 -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
Shane Fitzpatrick dd16944ecf Adding better 'responseType' and 'method' type definitions by using a string literal union type of possible values (#1148) 2018-04-08 00:19:46 -07:00
Justin Beckwith 8e3b50c564 docs: es6ify the docs a little (#1461) 2018-04-08 00:18:56 -07:00
Justin Beckwith 7b11cc7181 docs: specify maxContentLength is in bytes (#1463) 2018-04-08 00:18:30 -07:00
Justin Beckwith ae1c2c3006 chore: update to latest version of a few dev dependencies 2018-04-07 15:16:14 -07:00
Justin Beckwith 4d90e231f0 chore: update to latest version of sinon 2018-04-07 15:16:14 -07:00
Justin Beckwith f620a0d4af chore: update to latest version of typescript 2018-04-07 15:16:14 -07:00
Justin Beckwith aa61bc85eb chore: update a few dev dependencies 2018-04-07 15:16:14 -07:00
Justin Beckwith 78926c308e chore: update runtime dependencies 2018-04-07 15:16:14 -07:00