Reading body during the REWRITE phase ?

Yichun Zhang (agentzh) agentzh at gmail.com
Fri Jan 15 21:58:56 UTC 2016


Hello!

On Fri, Jan 15, 2016 at 6:01 AM, Thibault Koechlin wrote:
> When used with auth_request (or maybe other modules, but that's the
> first time I encounter this issue within a few years of usage), there is
> no request made to the upstream if the request is made using POST/PUT
> and the body is bigger than client_body_buffer_size.
>

The problem here seems to be that the subrequest initiated by
auth_request already *consumes* the request body buffer chains which
make later main request handlers like ngx_proxy fail to see the
request body.

Regards,
-agentzh



More information about the nginx-devel mailing list