-
Notifications
You must be signed in to change notification settings - Fork 306
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Environment
"h3": "^2.0.1-rc.6"
Reproduction
defineHandler({
middleware: [
onResponse((response, event) => {
setCookie(event, 'test', 'test')
}),
],
handler: (event) => {
if (true) {
return new HTTPResponse('test_2', { status: 300 })
}
return new HTTPResponse('test_1', { status: 299 })
},
})
Describe the bug
if the response status is less than 300, cookies are set, if more than that, no cookies are set.
Additional context
No response
Logs
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working