Skip to content

Commit

Permalink
fix: always uppercase method option (#259)
Browse files Browse the repository at this point in the history
  • Loading branch information
murisceman authored Aug 16, 2023
1 parent 4cacd14 commit f5d94fa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/fetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,9 @@ export function createFetch(globalOptions: CreateFetchOptions): $Fetch {
error: undefined,
};

// Uppercase method name
context.options.method = context.options.method?.toUpperCase();

if (context.options.onRequest) {
await context.options.onRequest(context);
}
Expand Down

0 comments on commit f5d94fa

Please sign in to comment.