Skip to content

Commit

Permalink
Ensure fetch method is always uppercase
Browse files Browse the repository at this point in the history
  • Loading branch information
npezza93 committed Feb 7, 2024
1 parent b815594 commit f2645df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/http/fetch_request.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export class FetchRequest {
this.fetchOptions = {
credentials: "same-origin",
redirect: "follow",
method: method,
method: method.toUpperCase(),
headers: { ...this.defaultHeaders },
body: body,
signal: this.abortSignal,
Expand All @@ -79,7 +79,7 @@ export class FetchRequest {

this.url = url
this.fetchOptions.body = body
this.fetchOptions.method = fetchMethod
this.fetchOptions.method = fetchMethod.toUpperCase()
}

get headers() {
Expand Down

0 comments on commit f2645df

Please sign in to comment.