diff options
author | Igor Sysoev <igor@sysoev.ru> | 2008-01-08 21:06:38 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2008-01-08 21:06:38 +0000 |
commit | 5a45c6869fe75b6e404db836a53ff5241f9c2a17 (patch) | |
tree | e248cf10df267a11ddf51191ba2e9bd847931101 /src | |
parent | 1bc3a93ddf4aeaae55de5edbee465a16fba1940b (diff) | |
download | nginx-5a45c6869fe75b6e404db836a53ff5241f9c2a17.tar.gz nginx-5a45c6869fe75b6e404db836a53ff5241f9c2a17.zip |
update GET method text in an subrequest
Diffstat (limited to 'src')
-rw-r--r-- | src/http/ngx_http_core_module.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c index 27e723a5d..68e7891ac 100644 --- a/src/http/ngx_http_core_module.c +++ b/src/http/ngx_http_core_module.c @@ -113,6 +113,9 @@ static ngx_conf_enum_t ngx_http_core_satisfy[] = { }; +static ngx_str_t ngx_http_core_get_method = { 3, "GET " }; + + #if (NGX_HTTP_GZIP) static ngx_conf_enum_t ngx_http_gzip_http_version[] = { @@ -1760,7 +1763,7 @@ ngx_http_subrequest(ngx_http_request_t *r, sr->subrequest_in_memory = (flags & NGX_HTTP_SUBREQUEST_IN_MEMORY) != 0; sr->unparsed_uri = r->unparsed_uri; - sr->method_name = r->method_name; + sr->method_name = ngx_http_core_get_method; sr->http_protocol = r->http_protocol; if (ngx_http_set_exten(sr) != NGX_OK) { |