mirror of
https://github.com/nginx/nginx.git
synced 2024-12-18 21:23:36 -06:00
Reduced the number of GET method constants.
This commit is contained in:
parent
a89548a4e1
commit
f0f7b437b9
@ -359,9 +359,6 @@ static ngx_str_t ngx_http_error_pages[] = {
|
||||
};
|
||||
|
||||
|
||||
static ngx_str_t ngx_http_get_name = { 3, (u_char *) "GET " };
|
||||
|
||||
|
||||
ngx_int_t
|
||||
ngx_http_special_response_handler(ngx_http_request_t *r, ngx_int_t error)
|
||||
{
|
||||
@ -564,7 +561,7 @@ ngx_http_send_error_page(ngx_http_request_t *r, ngx_http_err_page_t *err_page)
|
||||
|
||||
if (r->method != NGX_HTTP_HEAD) {
|
||||
r->method = NGX_HTTP_GET;
|
||||
r->method_name = ngx_http_get_name;
|
||||
r->method_name = ngx_http_core_get_method;
|
||||
}
|
||||
|
||||
return ngx_http_internal_redirect(r, &uri, &args);
|
||||
|
Loading…
Reference in New Issue
Block a user