]> git.kaiwu.me - nginx.git/commitdiff
Stop emulating a space character after r->method_name.
authorRuslan Ermilov <ru@nginx.com>
Mon, 30 Nov 2015 09:54:01 +0000 (12:54 +0300)
committerRuslan Ermilov <ru@nginx.com>
Mon, 30 Nov 2015 09:54:01 +0000 (12:54 +0300)
This is an API change.

The proxy module was modified to not depend on this in 44122bddd9a1.
No known third-party modules seem to depend on this.

src/http/ngx_http_core_module.c
src/http/v2/ngx_http_v2.c

index 9946958b7ad98e4f06572d716ffdbf57af0df067..acb9c909e080e83cc998456b9e86f7e3a540ff37 100644 (file)
@@ -776,7 +776,7 @@ ngx_module_t  ngx_http_core_module = {
 };
 
 
-ngx_str_t  ngx_http_core_get_method = { 3, (u_char *) "GET " };
+ngx_str_t  ngx_http_core_get_method = { 3, (u_char *) "GET" };
 
 
 void
index e77c13a0ce7c67367b2530d0219e415572c3b927..869ce08943160b5fb0ea85f57cd311d0a8c2fdf9 100644 (file)
@@ -3294,9 +3294,6 @@ ngx_http_v2_construct_request_line(ngx_http_request_t *r)
 
     ngx_memcpy(p, ending, sizeof(ending));
 
-    /* some modules expect the space character after method name */
-    r->method_name.data = r->request_line.data;
-
     ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
                    "http2 http request line: \"%V\"", &r->request_line);