[nginx] Reduced the number of GET method constants.
Ruslan Ermilov
ru at nginx.com
Tue Dec 1 17:20:58 UTC 2015
details: http://hg.nginx.org/nginx/rev/9d00576252aa
branches:
changeset: 6310:9d00576252aa
user: Ruslan Ermilov <ru at nginx.com>
date: Mon Nov 30 12:04:35 2015 +0300
description:
Reduced the number of GET method constants.
diffstat:
src/http/ngx_http_special_response.c | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
diffs (22 lines):
diff -r ea3ba1ce7014 -r 9d00576252aa src/http/ngx_http_special_response.c
--- a/src/http/ngx_http_special_response.c Mon Nov 30 16:27:33 2015 +0300
+++ b/src/http/ngx_http_special_response.c Mon Nov 30 12:04:35 2015 +0300
@@ -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_reques
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);
More information about the nginx-devel
mailing list