diff --git a/ECOSYSTEM.md b/ECOSYSTEM.md index 51ded7f..1a61324 100644 --- a/ECOSYSTEM.md +++ b/ECOSYSTEM.md @@ -11,3 +11,4 @@ This is a list of axios related libraries and resources. If you have a suggestio * [axios-vcr](https://github.com/nettofarah/axios-vcr) - 📼 Record and Replay Axios requests * [@3846masa/axios-cookiejar-support](https://github.com/3846masa/axios-cookiejar-support) - Add tough-cookie support to axios * [axios-debug-log](https://github.com/Gerhut/axios-debug-log) - Axios interceptor of logging requests & responses by debug. +* [axios-method-override](https://github.com/jacobbuck/axios-method-override) - Axios http request method override plugin diff --git a/README.md b/README.md index 5b3c913..0cc4a2e 100644 --- a/README.md +++ b/README.md @@ -473,7 +473,7 @@ axios.get('/user/12345', { You can cancel a request using a *cancel token*. -> The axios cancel token API is based on the [cancelable promises proposal](https://github.com/tc39/proposal-cancelable-promises), which is currently at Stage 1. +> The axios cancel token API is based on the withdrawn [cancelable promises proposal](https://github.com/tc39/proposal-cancelable-promises). You can create a cancel token using the `CancelToken.source` factory as shown below: diff --git a/lib/defaults.js b/lib/defaults.js index 674b7da..69fbad1 100644 --- a/lib/defaults.js +++ b/lib/defaults.js @@ -80,7 +80,7 @@ defaults.headers = { } }; -utils.forEach(['delete', 'get', 'head'], function forEachMehtodNoData(method) { +utils.forEach(['delete', 'get', 'head'], function forEachMethodNoData(method) { defaults.headers[method] = {}; }); diff --git a/test/specs/requests.spec.js b/test/specs/requests.spec.js index f8cd032..0ae4726 100644 --- a/test/specs/requests.spec.js +++ b/test/specs/requests.spec.js @@ -51,6 +51,9 @@ describe('requests', function () { expect(reason.config.method).toBe('get'); expect(reason.config.url).toBe('http://thisisnotaserver'); + // re-enable jasmine.Ajax + jasmine.Ajax.install(); + done(); };