mirror of
https://github.com/tenrok/axios.git
synced 2026-06-11 18:02:32 +03:00
fix(fetch): capitalize HTTP method names; (#6395)
This commit is contained in:
@@ -122,7 +122,7 @@ export default isFetchSupported && (async (config) => {
|
||||
let requestContentLength = await resolveBodyLength(headers, data);
|
||||
|
||||
let _request = new Request(url, {
|
||||
method,
|
||||
method: 'POST',
|
||||
body: data,
|
||||
duplex: "half"
|
||||
});
|
||||
@@ -146,7 +146,7 @@ export default isFetchSupported && (async (config) => {
|
||||
request = new Request(url, {
|
||||
...fetchOptions,
|
||||
signal: composedSignal,
|
||||
method,
|
||||
method: method.toUpperCase(),
|
||||
headers: headers.normalize().toJSON(),
|
||||
body: data,
|
||||
duplex: "half",
|
||||
|
||||
Reference in New Issue
Block a user