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
mzabriskie
1629a026da
Adding X-Requested-With header
2015-04-12 16:07:32 -06:00
mzabriskie
60a82ef424
Changing to file level use strict statement
2015-03-18 17:21:15 -06:00
mzabriskie
a98c61f458
Adding ESLint
2015-03-17 14:14:26 -06:00
mzabriskie
69af75623c
Adding statusText to response
...
closes #46
2015-03-13 17:07:52 -06:00
mzabriskie
0412c7666e
Fixing issue with multibyte characters in node
...
closes #38
2015-02-02 22:04:18 -07:00
mzabriskie
59093a9c61
Adding tests for responseType arraybuffer
2015-02-02 21:12:08 -07:00
Niklas Närhinen
21f4a7f544
Add support for arraybuffer requests in browser
2015-01-25 14:00:22 +02:00
torkvalo
4f34f61b70
Delete fails in IE8/IE9, the verb needs to be capitalized.
2014-12-10 13:20:19 +01:00
Niklas Närhinen
2f4d0b8b45
Automatic Content-Type for FormData uploads
...
When data passed to axios is of type FormData we have to let the browser
create the Content-Type header so that the boundaries will get right
etc.
Usage:
```js
var data = new FormData();
data.append('field', 'some string');
data.append('file', someFile);
var opts = {
transformRequest: function(data) { return data; }
};
axios.post('/fileupload', data, opts);
```
2014-10-23 01:49:25 +03:00
mzabriskie
5fce14d9ec
Adding error handling to request for node.js - closes #18
2014-10-15 10:29:40 -06:00
mzabriskie
1b803fb233
Moving stuff to helpers/
2014-09-22 11:12:24 -06:00
mzabriskie
edb0c3ce24
Better User-Agent name
2014-09-22 10:48:44 -06:00
mzabriskie
94b2352438
Adding SSL support for node.js - #12
2014-09-21 16:18:08 -06:00
Mathieu Bruyen
9d5a8781e3
Handle UTF-8 multibyte sequences in node
...
Content-length header was set to the length of the string, which
does not take into account multibyte sequences in UTF-8 strings.
Now converts first to a buffer to get the proper length.
2014-09-21 17:48:26 +02:00
Mathieu Bruyen
095a204c5b
Allow ArrayBuffer and related views as data
...
In order to push binary data under the form of ArrayBuffer and
its related views (Int8Array, ...) one needs not to stringify
those.
For the XHR adapter there is nothing to do as it natively supports
ArrayBuffer in req.send().
Node's http adapter supports only string or Buffer thus a
transformation to Buffer is required before setting content length
header.
2014-09-18 09:17:46 +02:00
mzabriskie
e1aa04ccee
Fixing issue #3
2014-09-16 18:23:31 -06:00
mzabriskie
1fa35ced3c
Fixing issue #7
2014-09-16 11:51:29 -06:00