Welcome! Log In Create A New Profile

Advanced

[nginx] Upstream: fixed changing method on X-Accel-Redirect.

Maxim Dounin
January 11, 2016 11:18AM
details: http://hg.nginx.org/nginx/rev/b31928ca3870
branches:
changeset: 6334:b31928ca3870
user: Maxim Dounin <mdounin@mdounin.ru>
date: Mon Jan 11 19:08:12 2016 +0300
description:
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.

diffstat:

src/http/ngx_http_upstream.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)

diffs (11 lines):

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);

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[nginx] Upstream: fixed changing method on X-Accel-Redirect.

Maxim Dounin 434 January 11, 2016 11:18AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 269
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready