Skip to content

Commit 2e8b82f

Browse files
authored
Update compose.ts
1 parent c5a97b5 commit 2e8b82f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compose.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2378,7 +2378,7 @@ export const composeGeneralHandler = (app: AnyElysia) => {
23782378
)
23792379
switchMap +=
23802380
`case 'HEAD':` +
2381-
`return ht[${methods.GET ?? methods.ALL}].composed(c).then(_res => getResponseLength(_res).then((length)=>{` +
2381+
`return ht[${methods.GET ?? methods.ALL}].composed(c).then(_res=>getResponseLength(_res).then((length)=>{` +
23822382
`_res.headers.set('content-length', length)\n` +
23832383
`return new Response(null,{status:_res.status,statusText:_res.statusText,headers:_res.headers})\n` +
23842384
'}))\n'

0 commit comments

Comments
 (0)