| commit | 0c4198ff9cfae53a247f2ee7dfd24d950b10fe3f | [log] [tgz] |
|---|---|---|
| author | Maxim Dounin <mdounin@mdounin.ru> | Mon Jan 11 19:08:12 2016 +0300 |
| committer | Maxim Dounin <mdounin@mdounin.ru> | Mon Jan 11 19:08:12 2016 +0300 |
| tree | 8ab8956693312389192daf2512637aa933585d5a | |
| parent | 1ec5dc99ae13e3a43dde86147e764e13f04bf889 [diff] |
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 index 99ef3ae..7f377b6 100644 --- a/src/http/ngx_http_upstream.c +++ b/src/http/ngx_http_upstream.c
@@ -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);