lua location capture

agentzh agentzh at
Mon May 23 12:46:32 MSD 2011

On Fri, May 20, 2011 at 7:32 PM, Richard Kearsley
<Richard.Kearsley at> wrote:
> I traced the issue with the header's not being re-sent
> ngx.location.capture("/some-location", { method = ngx.HTTP_HEAD })
> they are not re-sent
> but
> ngx.location.capture("/some-location", { method = ngx.HTTP_GET })
> they are sent
> I don't know if this is correct behavior (it may well be)
> I got around it by changing the headers I needed into args then re-creating them at /some-location :(

This issue has been proven to be caused by two separate bugs. I've
already fixed them in ngx_lua's master branch:

Could you please try it out?


More information about the nginx mailing list