Restrictions to modifying request->headers_in.headers in NGX_HTTP_PREACCESS_PHASE?
mdounin at mdounin.ru
Wed Mar 28 19:56:45 UTC 2018
On Wed, Mar 28, 2018 at 03:47:04PM -0400, Ryan Burn wrote:
> I have a module that registers a handler to run in
> NGX_HTTP_PREACCESS_PHASE. The handler adds headers to
> request->headers_in.headers. This works as I would expect most of the
> time. But I am seeing cases of some crashes when calling
> Are there any restrictions where you are not allowed to push to
> headers_in.headers like that in the preaccess phase?
You are not allowed to modify r->headers_in, at any time.
More information about the nginx-devel