Skip to content

Commit 441cd08

Browse files
authored
🔧 fix: missing set and response in example of global hook (#227)
1 parent 1b55d4f commit 441cd08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎docs/life-cycle/overview.md

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

9797
new Elysia()
9898
.get('/none', () => '<h1>Hello World</h1>')
99-
.onAfterhandle(() => {
99+
.onAfterhandle(({ response, set }) => {
100100
if (isHtml(response))
101101
set.headers['Content-Type'] = 'text/html; charset=utf8'
102102
})

0 commit comments

Comments
 (0)