diff --git a/src/fetch.ts b/src/fetch.ts index 534dcca8..84ea1f70 100644 --- a/src/fetch.ts +++ b/src/fetch.ts @@ -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); }