aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/http/ngx_http_parse.c')
-rw-r--r--src/http/ngx_http_parse.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/http/ngx_http_parse.c b/src/http/ngx_http_parse.c
index 8d514db69..2b4cc72e3 100644
--- a/src/http/ngx_http_parse.c
+++ b/src/http/ngx_http_parse.c
@@ -312,7 +312,7 @@ printf("\nstate: %d, pos: %x, end: %x, char: '%c' buf: %s",
}
}
-int ngx_read_http_header_line(ngx_http_request_t *r)
+int ngx_read_http_header_line(ngx_http_request_t *r, ngx_hunk_t *h)
{
char c, ch;
char *p;
@@ -329,14 +329,14 @@ int ngx_read_http_header_line(ngx_http_request_t *r)
} state;
state = r->state;
- p = r->header_in->pos.mem;
+ p = h->pos.mem;
- while (p < r->header_in->last.mem && state < sw_done) {
+ while (p < h->last.mem && state < sw_done) {
ch = *p++;
/*
printf("\nstate: %d, pos: %x, end: %x, char: '%c' buf: %s",
- state, p, r->header_in->last.mem, ch, p);
+ state, p, h->last.mem, ch, p);
*/
switch (state) {
@@ -470,7 +470,7 @@ printf("\nstate: %d, pos: %x, end: %x, char: '%c' buf: %s",
}
}
- r->header_in->pos.mem = p;
+ h->pos.mem = p;
if (state == sw_done) {
r->state = sw_start;