comparison src/http/ngx_http_special_response.c @ 2685:6c8a5165ed2a

fix r2590: error_page made an external redirect without query string
author Igor Sysoev <igor@sysoev.ru>
date Tue, 07 Apr 2009 15:50:08 +0000
parents 859f6675a553
children ae4744c28620
comparison
equal deleted inserted replaced
2684:c944cba169e3 2685:6c8a5165ed2a
449 449
450 if (ngx_http_complex_value(r, &err_page->value, &uri) != NGX_OK) { 450 if (ngx_http_complex_value(r, &err_page->value, &uri) != NGX_OK) {
451 return NGX_ERROR; 451 return NGX_ERROR;
452 } 452 }
453 453
454 if (err_page->value.lengths) {
455 ngx_http_split_args(r, &uri, &args);
456
457 } else {
458 args = err_page->args;
459 }
460
461 if (uri.data[0] == '/') { 454 if (uri.data[0] == '/') {
455
456 if (err_page->value.lengths) {
457 ngx_http_split_args(r, &uri, &args);
458
459 } else {
460 args = err_page->args;
461 }
462 462
463 if (r->method != NGX_HTTP_HEAD) { 463 if (r->method != NGX_HTTP_HEAD) {
464 r->method = NGX_HTTP_GET; 464 r->method = NGX_HTTP_GET;
465 r->method_name = ngx_http_get_name; 465 r->method_name = ngx_http_get_name;
466 } 466 }