diff --git a/src/request.ts b/src/request.ts index e963fd9..1876cd4 100644 --- a/src/request.ts +++ b/src/request.ts @@ -317,10 +317,14 @@ const normalizeIncomingMethod = (method: unknown): string => { case 'OPTIONS': case 'POST': case 'PUT': + case 'QUERY': return method } const upper = method.toUpperCase() + // Fetch only normalizes these methods for backwards compatibility. + // HTTP methods are otherwise case-sensitive, so methods not in this list + // (including `query`) must retain their original casing. switch (upper) { case 'DELETE': case 'GET':