comparison src/http/ngx_http_special_response.c @ 1395:bf5b86d5f00e stable-0.5

r1354 merge: named location
author Igor Sysoev <igor@sysoev.ru>
date Tue, 14 Aug 2007 20:02:09 +0000
parents 4f55e5a2ed9e
children cc114c85be0f 0a174d921f1e
comparison
equal deleted inserted replaced
1384:6485121a080d 1395:bf5b86d5f00e
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;