Klaus Demo nginx / 1a8cbb8
leave HEAD method while error_page redirection Igor Sysoev 12 years ago
1 changed file(s) with 4 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
489489
490490 if (uri->data[0] == '/') {
491491
492 r->method = NGX_HTTP_GET;
493 r->method_name = ngx_http_get_name;
492 if (r->method != NGX_HTTP_HEAD) {
493 r->method = NGX_HTTP_GET;
494 r->method_name = ngx_http_get_name;
495 }
494496
495497 return ngx_http_internal_redirect(r, uri, args);
496498 }