Mercurial > hg > nginx
comparison src/http/ngx_http_special_response.c @ 1353:7443fbe0b013
named location
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Sun, 29 Jul 2007 18:11:39 +0000 |
parents | 458e041fc902 |
children | cc114c85be0f 0a174d921f1e |
comparison
equal
deleted
inserted
replaced
1352:e958b3cab51a | 1353:7443fbe0b013 |
---|---|
407 | 407 |
408 if (uri->data[0] == '/') { | 408 if (uri->data[0] == '/') { |
409 return ngx_http_internal_redirect(r, uri, NULL); | 409 return ngx_http_internal_redirect(r, uri, NULL); |
410 } | 410 } |
411 | 411 |
412 if (uri->data[0] == '@') { | |
413 return ngx_http_named_location(r, uri); | |
414 } | |
415 | |
412 r->headers_out.location = | 416 r->headers_out.location = |
413 ngx_list_push(&r->headers_out.headers); | 417 ngx_list_push(&r->headers_out.headers); |
414 | 418 |
415 if (r->headers_out.location) { | 419 if (r->headers_out.location) { |
416 error = NGX_HTTP_MOVED_TEMPORARILY; | 420 error = NGX_HTTP_MOVED_TEMPORARILY; |