Mercurial > hg > nginx
comparison src/http/modules/proxy/ngx_http_proxy_parse.c @ 172:caa57ddf6d77
nginx-0.0.1-2003-11-04-01:20:44 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 03 Nov 2003 22:20:44 +0000 |
parents | c42be4185301 |
children | 2357fa41738a |
comparison
equal
deleted
inserted
replaced
171:aff0e5d32af8 | 172:caa57ddf6d77 |
---|---|
24 sw_status_text, | 24 sw_status_text, |
25 sw_almost_done, | 25 sw_almost_done, |
26 sw_done | 26 sw_done |
27 } state; | 27 } state; |
28 | 28 |
29 state = p->state; | 29 state = p->parse_state; |
30 pos = p->header_in->pos; | 30 pos = p->header_in->pos; |
31 | 31 |
32 while (pos < p->header_in->last && state < sw_done) { | 32 while (pos < p->header_in->last && state < sw_done) { |
33 ch = *pos++; | 33 ch = *pos++; |
34 | 34 |
193 if (state == sw_done) { | 193 if (state == sw_done) { |
194 if (p->status_end == NULL) { | 194 if (p->status_end == NULL) { |
195 p->status_end = pos - 1; | 195 p->status_end = pos - 1; |
196 } | 196 } |
197 | 197 |
198 p->state = sw_start; | 198 p->parse_state = sw_start; |
199 return NGX_OK; | 199 return NGX_OK; |
200 } | 200 } |
201 | 201 |
202 p->state = state; | 202 p->parse_state = state; |
203 return NGX_AGAIN; | 203 return NGX_AGAIN; |
204 } | 204 } |