Mercurial > hg > nginx
changeset 772:843412b22ba2
compact r->http_minor and r->http_major
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 12 Oct 2006 13:08:26 +0000 |
parents | c8f991340053 |
children | c3ebeee31026 |
files | src/http/ngx_http_core_module.c src/http/ngx_http_request.h |
diffstat | 2 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/http/ngx_http_core_module.c Thu Oct 12 09:43:46 2006 +0000 +++ b/src/http/ngx_http_core_module.c Thu Oct 12 13:08:26 2006 +0000 @@ -1341,7 +1341,6 @@ sr->method = NGX_HTTP_GET; sr->http_version = r->http_version; - sr->http_major = r->http_minor; sr->request_line = r->request_line; sr->uri = *uri;
--- a/src/http/ngx_http_request.h Thu Oct 12 09:43:46 2006 +0000 +++ b/src/http/ngx_http_request.h Thu Oct 12 13:08:26 2006 +0000 @@ -330,8 +330,6 @@ ngx_uint_t method; ngx_uint_t http_version; - ngx_uint_t http_major; - ngx_uint_t http_minor; ngx_str_t request_line; ngx_str_t uri; @@ -456,6 +454,7 @@ unsigned subrequests:8; /* used to parse HTTP headers */ + ngx_uint_t state; u_char *uri_start; u_char *uri_end; @@ -475,6 +474,9 @@ u_char *header_start; u_char *header_end; + unsigned http_minor:16; + unsigned http_major:16; + ngx_uint_t header_hash; ngx_uint_t lowcase_index; u_char lowcase_header[NGX_HTTP_LC_HEADER_LEN];