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

Revert "Bug/allow header to contain http verb keys #1252 (#1258)" (#2977)

This reverts commit 920510b3a6.
This commit is contained in:
Jay
2020-05-22 21:44:26 +02:00
committed by GitHub
parent 920510b3a6
commit cbda78552b
2 changed files with 1 additions and 16 deletions
-13
View File
@@ -86,17 +86,4 @@ describe('headers', function () {
done();
});
});
describe('when a header key matches an HTTP verb', function() {
it('preserves the header value', function(done) {
axios.post('/foo', null, { 'headers': { 'delete': 'test' } });
getAjaxRequest().then(function (request) {
var headerValue = request.requestHeaders['delete'];
expect(headerValue).toEqual('test');
done();
});
});
});
});