Mercurial > hg > nginx
diff src/http/ngx_http_parse.c @ 343:6bdf858bff8c
nginx-0.0.3-2004-05-28-19:49:23 import; rename ngx_hunk_t to ngx_buf_t
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Fri, 28 May 2004 15:49:23 +0000 |
parents | ba876b26b76d |
children | 0526206251f6 |
line wrap: on
line diff
--- a/src/http/ngx_http_parse.c Wed May 26 19:33:53 2004 +0000 +++ b/src/http/ngx_http_parse.c Fri May 28 15:49:23 2004 +0000 @@ -438,7 +438,7 @@ } -ngx_int_t ngx_http_parse_header_line(ngx_http_request_t *r, ngx_hunk_t *h) +ngx_int_t ngx_http_parse_header_line(ngx_http_request_t *r, ngx_buf_t *b) { u_char c, ch, *p; enum { @@ -455,9 +455,9 @@ } state; state = r->state; - p = h->pos; + p = b->pos; - while (p < h->last && state < sw_done) { + while (p < b->last && state < sw_done) { ch = *p++; switch (state) { @@ -623,7 +623,7 @@ } } - h->pos = p; + b->pos = p; if (state == sw_done) { r->state = sw_start;