From 8889b65711cc93dfdbbd570384fe2e39391cc94e Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Sun, 29 Jul 2007 18:11:39 +0000 Subject: named location --- src/http/ngx_http_special_response.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/http/ngx_http_special_response.c') diff --git a/src/http/ngx_http_special_response.c b/src/http/ngx_http_special_response.c index 2598116f7..1797603a0 100644 --- a/src/http/ngx_http_special_response.c +++ b/src/http/ngx_http_special_response.c @@ -409,6 +409,10 @@ ngx_http_special_response_handler(ngx_http_request_t *r, ngx_int_t error) return ngx_http_internal_redirect(r, uri, NULL); } + if (uri->data[0] == '@') { + return ngx_http_named_location(r, uri); + } + r->headers_out.location = ngx_list_push(&r->headers_out.headers); -- cgit