Mercurial > hg > nginx
changeset 6334:b31928ca3870
Upstream: fixed changing method on X-Accel-Redirect.
Previously, only r->method was changed, resulting in handling of a request
as GET within nginx itself, but not in requests to proxied servers.
See http://mailman.nginx.org/pipermail/nginx/2015-December/049518.html.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Mon, 11 Jan 2016 19:08:12 +0300 |
parents | 9d06921918af |
children | 96c4297375bc |
files | src/http/ngx_http_upstream.c |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/http/ngx_http_upstream.c Mon Jan 11 10:53:49 2016 +0300 +++ b/src/http/ngx_http_upstream.c Mon Jan 11 19:08:12 2016 +0300 @@ -2499,6 +2499,7 @@ if (r->method != NGX_HTTP_HEAD) { r->method = NGX_HTTP_GET; + r->method_name = ngx_http_core_get_method; } ngx_http_internal_redirect(r, &uri, &args);