From 5e245dec634959749ac12f0370124751e8e8109f Mon Sep 17 00:00:00 2001 From: Taku Amano Date: Thu, 16 Jul 2026 06:07:40 +0900 Subject: [PATCH] perf(request): fast-path QUERY methods --- src/request.ts | 4 ++++ 1 file changed, 4 insertions(+) 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':