aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@nginx.com>2015-11-30 12:54:01 +0300
committerRuslan Ermilov <ru@nginx.com>2015-11-30 12:54:01 +0300
commit362fb6c1d4620fb061fc242a78cb0343e6c4a7e0 (patch)
treea1d46108ff728b302ed427cfe0cd487978392444 /src
parent05a38c707728bba20e21c57dcb8035574b56e055 (diff)
downloadnginx-362fb6c1d4620fb061fc242a78cb0343e6c4a7e0.tar.gz
nginx-362fb6c1d4620fb061fc242a78cb0343e6c4a7e0.zip
Stop emulating a space character after r->method_name.
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.
Diffstat (limited to 'src')
-rw-r--r--src/http/ngx_http_core_module.c2
-rw-r--r--src/http/v2/ngx_http_v2.c3
2 files changed, 1 insertions, 4 deletions
diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c
index 9946958b7..acb9c909e 100644
--- a/src/http/ngx_http_core_module.c
+++ b/src/http/ngx_http_core_module.c
@@ -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
diff --git a/src/http/v2/ngx_http_v2.c b/src/http/v2/ngx_http_v2.c
index e77c13a0c..869ce0894 100644
--- a/src/http/v2/ngx_http_v2.c
+++ b/src/http/v2/ngx_http_v2.c
@@ -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);