aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_special_response.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2007-07-29 18:11:39 +0000
committerIgor Sysoev <igor@sysoev.ru>2007-07-29 18:11:39 +0000
commit8889b65711cc93dfdbbd570384fe2e39391cc94e (patch)
tree1ec9dc6fe20145da12412864d30eae44be7358ed /src/http/ngx_http_special_response.c
parenta1df416d65167dcb6e472ae11a00ef67e770acec (diff)
downloadnginx-8889b65711cc93dfdbbd570384fe2e39391cc94e.tar.gz
nginx-8889b65711cc93dfdbbd570384fe2e39391cc94e.zip
named location
Diffstat (limited to 'src/http/ngx_http_special_response.c')
-rw-r--r--src/http/ngx_http_special_response.c4
1 files changed, 4 insertions, 0 deletions
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);