Open imslepov opened 6 months ago
Start a new pull request in StackBlitz Codeflow.
Would you see if you can reproduce this in pure Nitro (reproduction sandbox), and if so, raise there? 🙏
Hmm... Nitro doesn't hook the render:response
(which is okay) and afterResponse
, but in the beforeResponse
hook this bug repeats, also returning a status code of 200. See Nitro's reproduction.
UPD: It looks like a bug in unjs/h3. I have created an issue for this.
Environment
Darwin
v20.12.2
3.11.2
3.11.1
2.9.6
npm@10.5.0
-
devtools
-
-
Reproduction
See reproduction link
Describe the bug
If using the
render:response
andafterResponse
hooks in the server plugin, thestatusCode
doesn't match the one actually sent.Additional context
No response
Logs
No response