Closed mrdc closed 2 years ago
Fixed in master branch, hard to fix in 0.12 without breaking stuff. The problem is that errors or explicitly returning HTTPResponse
will bypass any headers already set in the global response
object. This is by design. The after_request
hook is called too early in 0.12 (before merging the HTTPResponse
back into response
).
Hi,
@hook('after_request') is not working for errors: 404, for example.