]> git.kaiwu.me - nginx.git/commit
Merge of r4651: proxy_cookie_* fix.
authorMaxim Dounin <mdounin@mdounin.ru>
Mon, 2 Jul 2012 15:43:50 +0000 (15:43 +0000)
committerMaxim Dounin <mdounin@mdounin.ru>
Mon, 2 Jul 2012 15:43:50 +0000 (15:43 +0000)
commit6d92e7627100a71cad240b354e502cc3511cf797
tree17aceb0f753a9843fd9f6719b34be07becf522b2
parent0b233916868a659a5edf5bbb625d9defa53e475c
Merge of r4651: proxy_cookie_* fix.

Fixed returned value handling from the cookie rewrite handler.

If the "proxy_cookie_domain" or "proxy_cookie_path" directive is used and there
are no matches in Set-Cookie header then ngx_http_proxy_rewrite_cookie() returns
NGX_DECLINED to indicate that the header was not rewritten. Returning this value
further from the upstream headers copy handler resulted in 500 error response.

See here for report:
http://mailman.nginx.org/pipermail/nginx/2012-May/033858.html
src/http/ngx_http_upstream.c