Skip to content

Commit

Permalink
fix(fetch): capitalize HTTP method names; (#6395)
Browse files Browse the repository at this point in the history
  • Loading branch information
DigitalBrainJS committed May 18, 2024
1 parent b9f4848 commit ad3174a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/adapters/fetch.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"
});
Expand All @@ -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",
Expand Down

0 comments on commit ad3174a

Please sign in to comment.