Skip to content

Commit 1b55d4f

Browse files
authored
🔧 fix: missing set in example of Global Hook (life-cycle.md) (#226)
1 parent 09d4e69 commit 1b55d4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎docs/essential/life-cycle.md

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

129129
new Elysia()
130130
.get('/none', () => '<h1>Hello World</h1>')
131-
.onAfterHandle(({ response }) => {
131+
.onAfterHandle(({ response, set }) => {
132132
if (isHtml(response))
133133
set.headers['Content-Type'] = 'text/html; charset=utf8'
134134
})

0 commit comments

Comments
 (0)