comparison src/http/ngx_http_core_module.c @ 1857:18c20c38ad6d

update GET method text in an subrequest
author Igor Sysoev <igor@sysoev.ru>
date Tue, 08 Jan 2008 21:06:38 +0000
parents 0d9c6fe7502b
children 9fb312cd641c
comparison
equal deleted inserted replaced
1856:11d12ef106a9 1857:18c20c38ad6d
111 { ngx_string("any"), NGX_HTTP_SATISFY_ANY }, 111 { ngx_string("any"), NGX_HTTP_SATISFY_ANY },
112 { ngx_null_string, 0 } 112 { ngx_null_string, 0 }
113 }; 113 };
114 114
115 115
116 static ngx_str_t ngx_http_core_get_method = { 3, "GET " };
117
118
116 #if (NGX_HTTP_GZIP) 119 #if (NGX_HTTP_GZIP)
117 120
118 static ngx_conf_enum_t ngx_http_gzip_http_version[] = { 121 static ngx_conf_enum_t ngx_http_gzip_http_version[] = {
119 { ngx_string("1.0"), NGX_HTTP_VERSION_10 }, 122 { ngx_string("1.0"), NGX_HTTP_VERSION_10 },
120 { ngx_string("1.1"), NGX_HTTP_VERSION_11 }, 123 { ngx_string("1.1"), NGX_HTTP_VERSION_11 },
1758 1761
1759 sr->zero_in_uri = (flags & NGX_HTTP_ZERO_IN_URI) != 0; 1762 sr->zero_in_uri = (flags & NGX_HTTP_ZERO_IN_URI) != 0;
1760 sr->subrequest_in_memory = (flags & NGX_HTTP_SUBREQUEST_IN_MEMORY) != 0; 1763 sr->subrequest_in_memory = (flags & NGX_HTTP_SUBREQUEST_IN_MEMORY) != 0;
1761 1764
1762 sr->unparsed_uri = r->unparsed_uri; 1765 sr->unparsed_uri = r->unparsed_uri;
1763 sr->method_name = r->method_name; 1766 sr->method_name = ngx_http_core_get_method;
1764 sr->http_protocol = r->http_protocol; 1767 sr->http_protocol = r->http_protocol;
1765 1768
1766 if (ngx_http_set_exten(sr) != NGX_OK) { 1769 if (ngx_http_set_exten(sr) != NGX_OK) {
1767 return NGX_ERROR; 1770 return NGX_ERROR;
1768 } 1771 }