Skip to content

Commit 23fb411

Browse files
committed
fix: typo on accessing header
1 parent 88cf4f0 commit 23fb411

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/essential/context.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ import { Elysia } from 'elysia'
126126

127127
new Elysia()
128128
.derive(({ headers }) => {
129-
const auth = headers['Authorization']
129+
const auth = headers['authorization']
130130

131131
return {
132132
bearer: auth?.startsWith('Bearer ') ? auth.slice(7) : null

0 commit comments

Comments
 (0)