diff options
author | Maxim Dounin <mdounin@mdounin.ru> | 2016-01-11 19:08:12 +0300 |
---|---|---|
committer | Maxim Dounin <mdounin@mdounin.ru> | 2016-01-11 19:08:12 +0300 |
commit | af647a3da2eb9ff558655424868f82f259de94f1 (patch) | |
tree | 8ab8956693312389192daf2512637aa933585d5a | |
parent | 65af9b8be2c865b157ca02f08131d79e422fef68 (diff) | |
download | nginx-af647a3da2eb9ff558655424868f82f259de94f1.tar.gz nginx-af647a3da2eb9ff558655424868f82f259de94f1.zip |
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.
-rw-r--r-- | src/http/ngx_http_upstream.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c index 99ef3aec7..7f377b676 100644 --- a/src/http/ngx_http_upstream.c +++ b/src/http/ngx_http_upstream.c @@ -2499,6 +2499,7 @@ ngx_http_upstream_process_headers(ngx_http_request_t *r, ngx_http_upstream_t *u) 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); |