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

68 Commits

Author SHA1 Message Date
Matt Zabriskie 7a16f72895 Improving logic for handling timeout in node
closes #124
2016-01-22 16:27:54 -07:00
Matt Zabriskie d31ebc4c50 Normalize response status for HTTP 204 in MSIE 2016-01-22 14:40:44 -07:00
Matt Zabriskie c73389e69d Merge pull request #202 from savantaparna/master
Fixing #201 by treating status code 1223 as a success code.
2016-01-22 14:00:09 -07:00
Philip Roberts 252876c2c0 Fixing reject not being called on xhr network errors.
Fixes #204
2016-01-22 16:39:41 +00:00
savantaparna 1f2d79038c Fixing #201 by treating status code 1223 as a success code. 2016-01-21 17:46:13 -08:00
Gary Chambers f44d9ce677 Fixing redirect behaviour 2016-01-19 14:51:14 +00:00
Matt Zabriskie 6f13a7591b Only strip Content-Type header if data is undefined 2016-01-18 11:04:10 -07:00
vandosant 71aadd604d Fixing #184 Content type removed if data is false 2016-01-17 21:25:21 -07:00
Jorik Tangelder ef6bfe8cb2 fix linting errors 2016-01-03 12:17:43 +01:00
Jorik Tangelder 986647be59 improve IE support
removes ActiveXObject support, and improves detection of XDomainRequest.
2016-01-03 12:08:09 +01:00
Matt Zabriskie 82847f737e Fixing config weirdness 2015-12-24 11:44:46 -07:00
Anth Winter 0545573798 Added condition to check for IE version before using XDomainRequest 2015-12-24 12:05:55 +00:00
Matt Zabriskie f28a4a8248 Using more strict eslint rules 2015-12-14 20:06:57 -07:00
Matt Zabriskie d127adfe00 Merge pull request #174 from aukevanleeuwen/fix-for-issue-171
Fixing #171, don't fail on error responses with json payloads
2015-12-14 14:55:30 -07:00
Auke van Leeuwen 0e4b3399c1 Fixing #171, don't fail on error responses with json payloads 2015-12-14 22:14:22 +01:00
Julia Gao fd2339cf5c got rid of the colon after Basic, test passed 2015-12-14 12:37:19 -07:00
Matt Zabriskie c566567420 Better import statement 2015-12-14 12:15:53 -07:00
Sam Julien 415ff773cc Add check for withCredentials in XHR adapter (#138) 2015-12-11 12:16:57 -08:00
Matt Zabriskie 085f95f9ce Better formatting 2015-12-11 12:38:23 -07:00
Matt Zabriskie 07b177f347 Removing unwanted user/pass for auth 2015-12-11 11:39:22 -07:00
Idan Gazit 603e7c84a0 Polyfilling btoa where appropriate
Includes testing of the polyfills.
2015-12-10 17:22:39 +02:00
Idan Gazit af170334bd Dropping support for auth.user/pass
Only accept `username` and `password` as arguments
2015-12-10 17:21:31 +02:00
Idan Gazit 95df032fbd Abandoning URL embedded identities for Basic auth
Use an `Authorization` header instead, which is a safer choice than URL embedded identities (aka `http://user:pass@example.com`). [Chrome 19 dropped support][chromium128323] for URL embedded identities in XMLHttpRequest for security reasons.

Added documentation note about how this will overwrite any existing `Authorization` header that the user may have set.

[chromium128323]: https://code.google.com/p/chromium/issues/detail?id=128323
2015-12-09 13:21:07 +02:00
Harry Lachenmayer 19cbca0c71 Add HTTP basic authentication for Node. 2015-12-09 11:27:47 +02:00
Harry Lachenmayer 32a904394f Add HTTP basic authentication. 2015-12-09 11:27:47 +02:00
Vineet Hawal 837da5319c remove console.log -_- 2015-11-22 01:32:38 +05:30
Vineet Hawal 5c3b144a64 import isURLSameOrigin at top 2015-11-22 01:27:34 +05:30
Vineet Hawal 0be4467e05 buildUrl -> buildURL 2015-11-22 00:28:19 +05:30
Vineet Hawal 729ff05112 Merge branch 'master' of github.com:mzabriskie/axios into xDomainRequestSupport
Conflicts:
	package.json
2015-11-22 00:17:24 +05:30
Vineet Hawal 1eac0b1b21 buildUrl helper reference fix in xhr 2015-11-20 15:58:49 +05:30
Vineet Hawal e5e14daab6 Merge branch 'master' of github.com:mzabriskie/axios into xDomainRequestSupport
Conflicts:
	lib/adapters/xhr.js
2015-11-20 15:21:04 +05:30
Matt Zabriskie 433dd0d037 Merge pull request #149 from Kosta-Github/Kosta/unzip
Adding transparent decompression if `content-encoding` is set
2015-11-19 15:37:58 -07:00
Matt Zabriskie ae3adcd28b Merge branch 'master' of github.com:mzabriskie/axios 2015-11-19 15:32:55 -07:00
Matt Zabriskie 02a93330ed Resolving conflicts 2015-11-19 15:32:05 -07:00
Matt Zabriskie 2781ff650c Merge pull request #146 from skarbovskiy/master
follow redirects
2015-11-19 15:28:39 -07:00
Matt Zabriskie 3d65057d71 Making isURLSameOrigin/cookies safe to use in all envs 2015-11-19 15:18:47 -07:00
moonion 2e4c9285d7 add config.paramsSerializer to http adapter 2015-11-18 16:04:18 +02:00
Konstantin Baumann b3a4ff03e2 uncompress the response body transparently if required 2015-11-12 11:16:57 +01:00
george.skarbovskiy cf192f495e follow redirects 2015-11-06 12:56:21 +02:00
Vineet Hawal a768ac07cd remove extra conditions 2015-10-29 15:40:45 +05:30
Vineet Hawal a59bc8d2ae add xDomainRequest adapter 2015-10-29 12:51:37 +05:30
Matt Zabriskie 11c12b2c65 Merge pull request #121 from azendoo/custom-encode-params-method
Add support third-party library to serialize url params
2015-10-27 14:48:02 -06:00
David Fournier 14ede9e18e Add support third-party library to serialize url params 2015-10-27 11:54:44 +01:00
Konstantin Baumann 84a0ddecd4 http adapter: return a Buffer instead of a String in case of responseType === 'arraybuffer' 2015-10-15 17:28:38 +02:00
mzabriskie 6aa766e5e9 Adding support for web workers, and react-native
closes #70, closes #98
2015-09-28 18:33:46 -06:00
Matt Zabriskie 2a6d7c2a38 Merge pull request #102 from nlf/master
allow passing an agent through to node http requests, closes #68
2015-09-21 16:44:06 -06:00
mzabriskie 2936cdce14 Reverting default X-Requested-With header for xhr
for more details see https://remysharp.com/2011/04/21/getting-cors-working
2015-09-21 13:58:35 -06:00
mzabriskie ffc0237a17 Adding support for timeout config
closes #56
2015-08-10 19:00:27 -06:00
Nathan LaFreniere 11c0b0aa10 allow passing an agent through to node http requests, closes #68 2015-08-05 12:13:16 -07:00
mzabriskie db85c7bf3a Fixing issue with User-Agent getting overridden
closes #69
2015-06-18 21:19:46 -06:00