Commit Graph

21 Commits

Author SHA1 Message Date
Nick Uraltsev
4c4e648f40 Replacing Object.hasOwnProperty with Object.prototype.hasOwnProperty 2016-09-12 11:26:40 -07:00
Tony L. Kerz
077153a0a7 [for-each] has-own-prop issue node 2016-09-11 09:15:22 -04:00
Matt Zabriskie
0e2f4f1417 Moving Axios class into core/ 2016-06-01 14:42:14 -06:00
Matt Zabriskie
112f98dc18 Merge pull request #317 from nickuraltsev/urlsearchparams
Adding support for URLSearchParams
2016-05-24 20:40:25 -06:00
Nick Uraltsev
2b8d89a65e Modifying isURLSearchParams function to use instanceof instead of duck typing 2016-05-18 18:47:34 -07:00
Sergey Tsvetkov
b1e6e753ff Used instanceof to determine FormData in utils.isFormData. Fix #323. 2016-05-17 15:52:15 +03:00
Nick Uraltsev
f20490eb6b Adding support for URLSearchParams 2016-05-07 12:26:28 -07:00
Nick Uraltsev
9e7b1b5993 Add isFunction and isStream helpers 2016-04-12 19:49:12 -07:00
Matt Zabriskie
82847f737e Fixing config weirdness 2015-12-24 11:44:46 -07:00
Matt Zabriskie
f28a4a8248 Using more strict eslint rules 2015-12-14 20:06:57 -07:00
Colin Timmermans
1e2cb9bdca Don't use utils.forEach to loop over arguments
This fixes IE8 support, where we cannot relialably detect an arguments
object.
2015-10-27 23:26:04 +01:00
mzabriskie
6aa766e5e9 Adding support for web workers, and react-native
closes #70, closes #98
2015-09-28 18:33:46 -06:00
Andrew Gibb
4f1101fe4b Fixing isArrayLike to allow length as a param. Added test 2015-07-21 14:29:24 +10: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
6d03e0bd4e Fixing issues with strict mode
closes #45
2015-03-10 14:28:43 -06: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
f406b092fc Fixing failing tests 2014-09-22 10:47:41 -06: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
Matt Zabriskie
7aef479c7e Adding xsrf protection 2014-08-29 01:17:40 -06:00
Matt Zabriskie
cec3482ff7 Moving utility functions into utils 2014-08-28 12:33:53 -06:00