diff options
author | Igor Sysoev <igor@sysoev.ru> | 2008-08-04 14:53:16 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2008-08-04 14:53:16 +0000 |
commit | ac721d0647da1311f5b47d7785d4f4217b27f64f (patch) | |
tree | b63486855ab9913bf12d7bbb9a6a913a9b7f13b0 /src/http/ngx_http_upstream.c | |
parent | 1ae389d2f75cc345d76e62a9c43ee9abb4a02ea8 (diff) | |
download | nginx-ac721d0647da1311f5b47d7785d4f4217b27f64f.tar.gz nginx-ac721d0647da1311f5b47d7785d4f4217b27f64f.zip |
if upstream sent a location header without status use 302
Diffstat (limited to 'src/http/ngx_http_upstream.c')
-rw-r--r-- | src/http/ngx_http_upstream.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c index 27f27ae7e..191219b73 100644 --- a/src/http/ngx_http_upstream.c +++ b/src/http/ngx_http_upstream.c @@ -137,7 +137,8 @@ ngx_http_upstream_header_t ngx_http_upstream_headers_in[] = { ngx_http_upstream_copy_header_line, 0, 0 }, { ngx_string("Location"), - ngx_http_upstream_ignore_header_line, 0, + ngx_http_upstream_process_header_line, + offsetof(ngx_http_upstream_headers_in_t, location), ngx_http_upstream_rewrite_location, 0, 0 }, { ngx_string("Refresh"), |