On Tue, Jun 14, 2011 at 04:37:08PM -0700, Roman V. wrote:
On 06/14/2011 04:35 PM, Roman V. wrote:
Whan to add that fixed it by removing all headers from main request.
Sorry, removing from subrequest.
Is it correct? Or exists more clear way to do that?
This isn’t correct (in both meanings: it doesn’t correctly remove
headers from subrequest and not a correct way to prevent body from
being read before subrequest).
I would recommend adding fake body to subrequest instead, see
Note that it may be also needed to instruct backend to not expect
body, i.e. if you proxy_pass such subrequest you should either use
proxy_set_header Content-Length "";