Mercurial > hg > nginx
comparison src/http/ngx_http_upstream.c @ 1653:ea681a6a0c61
set r->headers_out.location for non-local redirects
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 27 Nov 2007 11:52:37 +0000 |
parents | 02a22cd5282a |
children | e5c547a225bd |
comparison
equal
deleted
inserted
replaced
1652:cc7a7d0b89e8 | 1653:ea681a6a0c61 |
---|---|
2607 } | 2607 } |
2608 | 2608 |
2609 return rc; | 2609 return rc; |
2610 } | 2610 } |
2611 | 2611 |
2612 if (ho->value.data[0] != '/') { | |
2613 r->headers_out.location = ho; | |
2614 } | |
2615 | |
2612 /* | 2616 /* |
2613 * we do not set r->headers_out.location here to avoid the handling | 2617 * we do not set r->headers_out.location here to avoid the handling |
2614 * the local redirects without a host name by ngx_http_header_filter() | 2618 * the local redirects without a host name by ngx_http_header_filter() |
2615 */ | 2619 */ |
2616 | 2620 |