Mercurial > hg > nginx-quic
comparison src/http/ngx_http_special_response.c @ 2323:6854b688fd77 stable-0.6
r2193 merge:
leave HEAD method while error_page redirection
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 20 Nov 2008 17:09:15 +0000 |
parents | d4df1c875351 |
children | 6175f886ddfb |
comparison
equal
deleted
inserted
replaced
2322:d4df1c875351 | 2323:6854b688fd77 |
---|---|
487 args = &err_page->args; | 487 args = &err_page->args; |
488 } | 488 } |
489 | 489 |
490 if (uri->data[0] == '/') { | 490 if (uri->data[0] == '/') { |
491 | 491 |
492 r->method = NGX_HTTP_GET; | 492 if (r->method != NGX_HTTP_HEAD) { |
493 r->method_name = ngx_http_get_name; | 493 r->method = NGX_HTTP_GET; |
494 r->method_name = ngx_http_get_name; | |
495 } | |
494 | 496 |
495 return ngx_http_internal_redirect(r, uri, args); | 497 return ngx_http_internal_redirect(r, uri, args); |
496 } | 498 } |
497 | 499 |
498 if (uri->data[0] == '@') { | 500 if (uri->data[0] == '@') { |