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

863 Commits

Author SHA1 Message Date
Felipe Martins c282e7ea8e Fix cancellation error on build master. #2290 #2207 (#2407) 2019-09-12 23:45:06 -03:00
Sagar Acharya f5704fce71 Update response interceptor docs (#2399) 2019-09-12 22:30:36 -03:00
Avindra Goolcharan 6a4a85c57f Doc fixes, minor examples cleanup (#2198)
* README.md COOKBOOK.md: minor fixes

 * simplify language

* ECOSYSTEM: create a few categories

* Examples: log port listening to

* upgrade bootstrap 3 -> 4 in examples

bootstrap 4 is slightly smaller then 3.2.0
so it should also help load examples faster

* categorize 0.19 items a little differently

surface user/consumer changes first
2019-09-07 09:05:26 -03:00
Rafael Renan Pacheco a11cdf4683 Fixing custom config options (#2207)
- fixes #2203
2019-09-06 21:40:04 -03:00
bushuai e50a08b2c3 Fixing set config.method after mergeConfig for Axios.prototype.request (#2383)
Inside Axios.prototype.request function, It's forced to set
method to 'get' after `mergeConfig` if config.method exists, which makes the defaults.method not effective.
2019-09-06 14:23:55 -03:00
DIO 89bd3abe9a Axios create url bug (#2290)
* Fix #2234 

* added spacing --eslint

* added test cases

* removed unexpected cases after updating the code
2019-09-06 12:45:18 -03:00
Michael Foss b9931e0a95 Fix grammar in README.md (#2271) 2019-09-06 12:42:10 -03:00
Denis Sikuler f0f68afb61 Fix a typo in README (#2384) 2019-09-06 09:55:06 -03:00
multicolaure 6fe506fda2 Do not modify config.url when using a relative baseURL (resolves #1628) (#2391)
* Adding tests to show config.url mutation

Because config.url is modified while processing the request
when the baseURL is set,
it is impossible to perform a retry with the provided config object.

Ref #1628

* Fixing url combining without modifying config.url

As config.url is not modified anymore during the request processing.
The request can safely be retried after it failed with the provided
config.

resolves #1628
2019-09-05 12:43:55 -03:00
Felipe Martins 98e4acd893 Fix travis CI build (#2386) 2019-09-04 22:02:01 -03:00
Takahiro Ikeda 2ee3b48245 Fix typo in CHANGELOG.md - s/issue/issues (#2193)
- issue link is not found.
- typo: issue => issues
2019-05-31 09:20:35 -06:00
Emily Morehouse 8d0b92b267 Releasing 0.19.0 2019-05-30 10:10:06 -06:00
Emily Morehouse 3f7451ceb7 Update Changelog for release (0.19.0) 2019-05-30 10:00:25 -06:00
xlaguna f28ff933e4 Add information about auth parameter to README (#2166) 2019-05-28 10:57:59 -06:00
Daniela Borges Matos de Carvalho 5250e6e168 Add DELETE to list of methods that allow data as a config option (#2169) 2019-05-28 10:57:09 -06:00
Renan 6b0ccd13fa Update ECOSYSTEM.md - Add Axios Endpoints (#2176) 2019-05-28 10:55:33 -06:00
유용우 / CX 299e827c57 Add r2curl in ECOSYSTEM (#2141) 2019-05-15 13:40:23 -06:00
drawski fd0c959355 Unzip response body only for statuses != 204 (#1129) 2019-05-15 13:35:09 -06:00
Victor Hermes 92d231387f Update README.md - Add instructions for installing with yarn (#2036) 2019-05-07 16:17:16 -04:00
Josh McCarty ddcc2e4bc0 Fixing spacing for README.md (#2066) 2019-05-07 16:16:14 -04:00
Omar Cai 48c43d5240 Update README.md. - Change .then to .finally in example code (#2090) 2019-05-07 16:01:44 -04:00
Tyler Breisacher b7a9744518 Clarify what values responseType can have in Node (#2121)
It seems that `responseType: 'blob'` doesn't actually work in Node (when I tried using it, response.data was a string, not a Blob, since Node doesn't have Blobs), so this clarifies that this option should only be used in the browser
2019-05-07 15:26:33 -04:00
Gadzhi Gadzhiev 0d4fca085b Destroy stream on exceeding maxContentLength (fixes #1098) (#1485) 2019-05-07 15:20:34 -04:00
Suman Lama 047501f708 Makes Axios error generic to use AxiosResponse (#1738) 2019-05-07 15:14:57 -04:00
Weffe 283d7b306c docs(ECOSYSTEM): add axios-api-versioning (#2020) 2019-03-04 12:16:10 -07:00
grumblerchester 2eeb59af4d Fixing Mocha tests by locking follow-redirects version to 1.5.10 (#1993) 2019-02-08 21:27:36 -07:00
Emily Morehouse e122c80c9d Add issue templates 2019-02-03 22:41:08 -07:00
Dmitriy Eroshenko 71032ab5bd Update README.md. - Add Querystring library note (#1896)
* Update README.md. Querystring libraries note

* Typo in README.md

Co-Authored-By: airs0urce <airs0urce0@gmail.com>

* Update README.md

Co-Authored-By: airs0urce <airs0urce0@gmail.com>
2019-02-03 21:16:37 -07:00
Cody Chan da3a855262 Add react-hooks-axios to Libraries section of ECOSYSTEM.md (#1925) 2019-02-03 20:54:49 -07:00
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