diff options
author | Igor Sysoev <igor@sysoev.ru> | 2004-09-21 05:38:28 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2004-09-21 05:38:28 +0000 |
commit | dd888c4caadfbd94c595e6e39bdb361de82dda9f (patch) | |
tree | 70b87e5dded501cf3c7449e4baa98f69a6fd0607 /src/http/ngx_http_parse.c | |
parent | e5dabbf077412b8a7a3caf6501e3a410256fcf72 (diff) | |
download | nginx-dd888c4caadfbd94c595e6e39bdb361de82dda9f.tar.gz nginx-dd888c4caadfbd94c595e6e39bdb361de82dda9f.zip |
nginx-0.0.11-2004-09-21-09:38:28 import
Diffstat (limited to 'src/http/ngx_http_parse.c')
-rw-r--r-- | src/http/ngx_http_parse.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/http/ngx_http_parse.c b/src/http/ngx_http_parse.c index dd2d3749a..b1fb6c672 100644 --- a/src/http/ngx_http_parse.c +++ b/src/http/ngx_http_parse.c @@ -4,7 +4,7 @@ #include <ngx_http.h> -ngx_int_t ngx_http_parse_request_line(ngx_http_request_t *r) +ngx_int_t ngx_http_parse_request_line(ngx_http_request_t *r, ngx_buf_t *b) { u_char ch, *p, *m; enum { @@ -34,9 +34,9 @@ ngx_int_t ngx_http_parse_request_line(ngx_http_request_t *r) } state; state = r->state; - p = r->header_in->pos; + p = b->pos; - while (p < r->header_in->last && state < sw_done) { + while (p < b->last && state < sw_done) { ch = *p++; /* gcc 2.95.2 and vc 6.0 compile this switch as an jump table */ @@ -416,7 +416,7 @@ ngx_int_t ngx_http_parse_request_line(ngx_http_request_t *r) } } - r->header_in->pos = p; + b->pos = p; if (state == sw_done) { if (r->request_end == NULL) { |