Restrictions to modifying request->headers_in.headers in NGX_HTTP_PREACCESS_PHASE?
Maxim Dounin
mdounin at mdounin.ru
Wed Mar 28 19:56:45 UTC 2018
Hello!
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
>
> ngx_list_push(&request->headers_in.headers));
>
> 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.
--
Maxim Dounin
http://mdounin.ru/
More information about the nginx-devel
mailing list