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

931 Commits

Author SHA1 Message Date
Jay cbda78552b Revert "Bug/allow header to contain http verb keys #1252 (#1258)" (#2977)
This reverts commit 920510b3a6.
2020-05-22 21:44:26 +02:00
David Ko 920510b3a6 Bug/allow header to contain http verb keys #1252 (#1258)
* Failing test for #1252

* Only delete header keys that match an HTTP verb if the value is a non-string

Co-authored-by: David Ko <david.ko@pvtmethod.com>
Co-authored-by: Jay <jasonsaayman@gmail.com>
2020-05-22 21:26:10 +02:00
Ryan Bown 1cdf9e4039 Fixing Cookie Helper with Asyc Components (#1105) (#1107)
Co-authored-by: Jay <jasonsaayman@gmail.com>
2020-05-22 16:44:17 +02:00
Samina Fu 021e741aa1 Add CDNJS version badge in README.md (#878)
This badge will show the version on CDNJS!

Co-authored-by: Jay <jasonsaayman@gmail.com>
2020-05-22 16:09:09 +02:00
Jay fd57956a7e Documentation update to clear up ambiguity in code examples (#2928)
* Made a adjustment to the documenation to clear up any ambiguity around the use of "fs". This should help clear up that the code examples with "fs" cannot be used on the client side.

Co-authored-by: Jay <jason.saayman@basebone.com>
2020-05-05 13:44:07 +02:00
hexaez 16b5718954 Update README.md about validateStatus (#2912)
Rewrote the comment from "Reject only if the status code is greater than or equal to 500" to "Resolve only if the status code is less than 500"
2020-04-22 15:59:26 +02:00
Remco Haszing 5e0fb5fc99 Updating documentation for usage form-data (#2805)
Closes #2049

Co-authored-by: Xianming Zhong <chinesedfan@qq.com>
2020-04-05 18:01:38 +08:00
Benny Neugebauer c120f44d3d Fixing 'progressEvent' type (#2851)
* Fix 'progressEvent' type

* Update axios.ts
2020-03-28 17:51:42 +08:00
Alan Wang 885ada6d9b Fixing getting local files (file://) failed (#2470)
* fix issue #2416, #2396

* fix Eslint warn

* Modify judgment conditions

* add unit test

* update unit test

* update unit test
2020-03-23 21:49:38 +08:00
Motonori Iwata 5189afff38 Allow PURGE method in typings (#2191)
Co-authored-by: Xianming Zhong <chinesedfan@qq.com>
2020-03-07 14:45:25 +08:00
grumblerchester c98ce7d464 Adding tests for method options type definitions (#1996)
Update tests.

Co-authored-by: Xianming Zhong <chinesedfan@qq.com>
2020-03-07 14:10:34 +08:00
Spencer von der Ohe 42eb9dfabc Adding option to disable automatic decompression (#2661)
* Adding ability to disable auto decompression

* Updating decompress documentation in README

* Fixing test\unit\adapters\http.js lint errors

* Adding test for disabling auto decompression

* Removing changes that fixed lint errors in tests

* Removing formating change to unit test

Co-authored-by: Xianming Zhong <chinesedfan@qq.com>
2020-03-06 22:01:58 +08:00
Gustavo López 6642ca9aa1 Add independent maxBodyLength option (#2781)
* Add independent option to set the maximum size of the request body

* Remove maxBodyLength check

* Update README

* Assert for error code and message
2020-03-06 21:55:19 +08:00
Xianming Zhong 5214445139 Add test for redirecting with too large response (#2695) 2020-02-29 19:54:41 +08:00
Fonger ac777b13b0 Fixing CHANGELOG.md issue link (#2784) 2020-02-28 10:15:59 +08:00
Simone Busoli 8cd470c613 Include axios-hooks in ECOSYSTEM.md (#2003) 2020-02-26 20:13:37 +08:00
Alexandru Ungureanu 67e560da10 Added Response header access instructions (#1901)
* Added Response header access instructions

* Added note about using bracket notation
2020-02-26 19:03:20 +08:00
Ian Wijma b139abfc36 Add onUploadProgress and onDownloadProgress are browser only (#2763)
Saw in #928 and #1966 that `onUploadProgress` and `onDownloadProgress` only work in the browser and was missing that from the README.

Co-authored-by: Xianming Zhong <chinesedfan@qq.com>
2020-02-26 10:28:49 +08:00
Jimmy Liao 3d6cafb3f7 Update ' sign to ` in proxy spec (#2778) 2020-02-25 23:05:51 +08:00
Thibault Ehrhart 17a967123c Adding responseEncoding to mergeConfig (#1745)
Co-authored-by: Xianming Zhong <chinesedfan@qq.com>
2020-02-15 21:49:26 +08:00
Lukas Drgon 2cf6ae4608 Adding jsDelivr link in README (#1110)
* Adding jsDelivr link

* Add SRI

* Remove SRI

Co-authored-by: Yasu Flores <carlosyasu91@gmail.com>
Co-authored-by: Xianming Zhong <chinesedfan@qq.com>
2020-02-15 20:48:16 +08:00
jennynju 9267d4def1 Fixing unit test failure in Windows OS (#2601)
Co-authored-by: Xianming Zhong <chinesedfan@qq.com>
2020-02-15 19:03:34 +08:00
Nikita Galkin 12e00b8018 Fixing issue for HEAD method and gziped repsonse (#2666) 2020-02-15 18:10:58 +08:00
Xianming Zhong 2034c1db7e Fix tests in browsers (#2748) 2020-02-15 15:54:43 +08:00
Xianming Zhong 56b72bbd2c Compatible with follow-redirect aborts the request (#2689)
* Compatible with follow-redirect aborts the request

* Use the error code
2020-02-15 13:41:08 +08:00
Jonathan Sharpe 77f0ae4f61 Fix merging of params (#2656)
* Name function to avoid ESLint func-names warning

* Switch params config to merge list and update tests

* Restore testing of both false and null

* Restore test cases for keys without defaults

* Include test for non-object values that aren't false-y.
2020-02-15 13:36:52 +08:00
JounQin 371d8eac79 chore: add jsdelivr and unpkg support (#2443) 2020-01-31 10:20:12 -08:00
Xianming Zhong 7df84a7ff7 Revert finally as then (#2683)
Co-authored-by: Yasu Flores <carlosyasu91@gmail.com>
2020-01-22 12:18:22 -08:00
Emily Morehouse 2a0ff479f9 Releasing 0.19.2 2020-01-21 21:24:50 -07:00
Emily Morehouse 17cc1d6d7a Updating changlog for 0.19.2 release 2020-01-20 09:24:56 -07:00
Xianming Zhong c7488c7dd5 Remove unnecessary XSS check introduced by #2451 (#2679)
* Remove unnecessary XSS check introduced by #2451

* Remove test file of `isValidXss`
2020-01-20 09:20:33 -07:00
Emily Morehouse 351cf290f0 Fix link formatting in CHANGELOG.md to display PR number in parens as link (#2643) 2020-01-07 11:54:03 -07:00
Emily Morehouse 960e1c8798 Releasing 0.19.1 2020-01-07 10:21:04 -07:00
Malik Dirim 8a9421de0f Fixing typo in CHANGELOG.md: s/Functionallity/Functionality (#2639) 2020-01-07 09:31:54 -07:00
不才 ee47120a09 If this place is false, it will report an error, so you should delete the useless code. (#2458) 2019-12-25 13:00:15 -08:00
Michael Shin 03e6f4bf4c Fixing invalid agent issue (#1904) 2019-12-25 12:55:36 -08:00
ZhaoXC dc4bc49673 fix: fix ignore set withCredentials false (#2582) 2019-12-08 23:52:45 -08:00
Alanscut 13c948e661 Remove 'includes' API, fix CI build failure (#2574)
* Remove 'includes' API, fix CI build failure
2019-12-09 10:28:37 +08:00
Alanscut fa6cf01c91 fixing Travis link (#2540) 2019-12-09 09:14:52 +08:00
Alanscut a17c70cb5a Fix CI build failure (#2570) 2019-11-26 11:09:42 -08:00
Angelos Chalaris 1a32ca0601 Remove dependency on is-buffer (#1816)
* Remove dependency on is-buffer from package.json
2019-11-17 22:53:27 -08:00
Yasu Flores 0cc22c2f42 Fix badge, use master branch (#2538) 2019-11-15 19:32:37 -08:00
Yasu Flores 841466416b Fix XSS logic that matched some valid urls (#2529)
* Fix XSS logic that matched some valid urls, e.g. "/one/?foo=bar", when it shouldn't match those
2019-11-07 18:39:24 -08:00
Luke Policinski bbfd5b1395 Adding options typings (#2341) 2019-11-03 21:17:27 -08:00
Yasu Flores 55aaebcbf5 Document fix (#2514) 2019-11-03 20:56:17 -08:00
Yasu Flores 86d77504c2 Update docs with no_proxy change, issue #2484 (#2513) 2019-11-03 20:54:19 -08:00
Marlon Barcarol b0afbedf1b Adding Typescript HTTP method definition for LINK and UNLINK. (#2444) 2019-11-03 19:29:51 -08:00
Harshit Singh fa68fd30c3 Update README.md (#2504) 2019-11-03 18:30:49 -08:00
Felipe Martins 097948698a Revert "Update Webpack + deps, remove now unnecessary polyfills" (#2479)
* Revert "Update Webpack + deps, remove now unnecessary polyfills (#2410)"

This reverts commit 189b34c45a.

* Fix build (#2496)

* Change syntax to see if build passes

* Test commit

* Test with node 10

* Test adding all browsers in travis

* remove other browsers when running on travis
2019-10-25 11:34:47 -03:00
Yasu Flores 494d817314 Change syntax to see if build passes (#2488)
* Change syntax to see if build passes

* Test commit

* Test with node 10

* Test adding all browsers in travis

* remove other browsers when running on travis
2019-10-25 11:25:53 -03:00