Mercurial > hg > nginx
diff src/http/ngx_http_parse.c @ 432:11362a3e3911
nginx-0.0.11-2004-09-21-09:38:28 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 21 Sep 2004 05:38:28 +0000 |
parents | 47709bff4468 |
children | da8c5707af39 |
line wrap: on
line diff
--- a/src/http/ngx_http_parse.c Mon Sep 20 15:17:02 2004 +0000 +++ b/src/http/ngx_http_parse.c Tue Sep 21 05:38:28 2004 +0000 @@ -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 @@ } 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 @@ } } - r->header_in->pos = p; + b->pos = p; if (state == sw_done) { if (r->request_end == NULL) {