# HG changeset patch # User Maxim Dounin # Date 1452528492 -10800 # Node ID b31928ca38701a84f560194520876bb1c567fb6a # Parent 9d06921918af654092da2202c9e8564bc6ae77f0 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. diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c --- a/src/http/ngx_http_upstream.c +++ b/src/http/ngx_http_upstream.c @@ -2499,6 +2499,7 @@ ngx_http_upstream_process_headers(ngx_ht 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);