comparison src/http/ngx_http_special_response.c @ 1922:d23396f2a902

do not change method while error redirection to named location
author Igor Sysoev <igor@sysoev.ru>
date Mon, 10 Mar 2008 14:36:42 +0000
parents bc93d5ab3e27
children dd388c80f5a2
comparison
equal deleted inserted replaced
1921:cf148caa9347 1922:d23396f2a902
437 ngx_table_elt_t *location; 437 ngx_table_elt_t *location;
438 ngx_http_core_loc_conf_t *clcf; 438 ngx_http_core_loc_conf_t *clcf;
439 439
440 r->err_status = err_page->overwrite; 440 r->err_status = err_page->overwrite;
441 441
442 r->method = NGX_HTTP_GET;
443 r->method_name = ngx_http_get_name;
444
445 r->zero_in_uri = 0; 442 r->zero_in_uri = 0;
446 443
447 args = NULL; 444 args = NULL;
448 445
449 if (err_page->uri_lengths) { 446 if (err_page->uri_lengths) {
492 } else { 489 } else {
493 uri = &err_page->uri; 490 uri = &err_page->uri;
494 } 491 }
495 492
496 if (uri->data[0] == '/') { 493 if (uri->data[0] == '/') {
494
495 r->method = NGX_HTTP_GET;
496 r->method_name = ngx_http_get_name;
497
497 return ngx_http_internal_redirect(r, uri, args); 498 return ngx_http_internal_redirect(r, uri, args);
498 } 499 }
499 500
500 if (uri->data[0] == '@') { 501 if (uri->data[0] == '@') {
501 return ngx_http_named_location(r, uri); 502 return ngx_http_named_location(r, uri);