Skip to content

Commit 0d3549e

Browse files
ci: apply automated fixes
1 parent d9d24f0 commit 0d3549e

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
"@tanstack/start-server-core": patch
2+
'@tanstack/start-server-core': patch
33
---
44

55
fix(start-server-core): fall back HEAD requests to GET then ANY per RFC 9110 §9.3.2

‎packages/start-server-core/src/createStartHandler.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -903,8 +903,8 @@ async function handleServerRoutes({
903903
// Priority for HEAD: explicit HEAD handler → GET → ANY (last resort).
904904
const handler =
905905
requestMethod === 'HEAD'
906-
? handlers['HEAD'] ?? handlers['GET'] ?? handlers['ANY']
907-
: handlers[requestMethod] ?? handlers['ANY']
906+
? (handlers['HEAD'] ?? handlers['GET'] ?? handlers['ANY'])
907+
: (handlers[requestMethod] ?? handlers['ANY'])
908908
isHeadFallback =
909909
requestMethod === 'HEAD' && handler !== undefined && !handlers['HEAD']
910910

0 commit comments

Comments
 (0)