Mercurial > hg > nginx
comparison src/http/ngx_http_upstream.c @ 6853:c85dfd99a2dd
Fixed missing "Location" field with some relative redirects.
Relative redirects did not work with directory redirects and
auto redirects issued by nginx.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Thu, 22 Dec 2016 11:58:52 +0300 |
parents | d8d037f20484 |
children | a5d1b1383dea |
comparison
equal
deleted
inserted
replaced
6852:d15172ebb400 | 6853:c85dfd99a2dd |
---|---|
4925 if (ho->value.data[0] != '/') { | 4925 if (ho->value.data[0] != '/') { |
4926 r->headers_out.location = ho; | 4926 r->headers_out.location = ho; |
4927 } | 4927 } |
4928 | 4928 |
4929 /* | 4929 /* |
4930 * we do not set r->headers_out.location here to avoid the handling | 4930 * we do not set r->headers_out.location here to avoid handling |
4931 * the local redirects without a host name by ngx_http_header_filter() | 4931 * relative redirects in ngx_http_header_filter() |
4932 */ | 4932 */ |
4933 | 4933 |
4934 return NGX_OK; | 4934 return NGX_OK; |
4935 } | 4935 } |
4936 | 4936 |