As in title, doing response:statusCode(404) within a handler for a custom 404 response causes the response:writeDefaultErrorMessage call at handler.lua:146 to crash the program.
Specifically, it tries to do a write when the response was already written.
This doesn't seem like a very niche requirement to me
As in title, doing
response:statusCode(404)within a handler for a custom 404 response causes theresponse:writeDefaultErrorMessagecall at handler.lua:146 to crash the program.Specifically, it tries to do a write when the response was already written.
This doesn't seem like a very niche requirement to me