Mercurial > hg > nginx
comparison src/http/ngx_http_special_response.c @ 2192:798ecc4fe75c
leave HEAD method while error_page redirection
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 19 Aug 2008 18:55:46 +0000 |
parents | 808547aa8c12 |
children | 26d9d4a41e91 |
comparison
equal
deleted
inserted
replaced
2191:808547aa8c12 | 2192:798ecc4fe75c |
---|---|
488 args = &err_page->args; | 488 args = &err_page->args; |
489 } | 489 } |
490 | 490 |
491 if (uri->data[0] == '/') { | 491 if (uri->data[0] == '/') { |
492 | 492 |
493 r->method = NGX_HTTP_GET; | 493 if (r->method != NGX_HTTP_HEAD) { |
494 r->method_name = ngx_http_get_name; | 494 r->method = NGX_HTTP_GET; |
495 r->method_name = ngx_http_get_name; | |
496 } | |
495 | 497 |
496 return ngx_http_internal_redirect(r, uri, args); | 498 return ngx_http_internal_redirect(r, uri, args); |
497 } | 499 } |
498 | 500 |
499 if (uri->data[0] == '@') { | 501 if (uri->data[0] == '@') { |