Mercurial > hg > nginx-quic
comparison src/http/modules/ngx_http_proxy_module.c @ 3477:fb0b7450c2e8
reset a parsing state to parse correctly an upstream response,
if 400 or 414 response has been redirected to upstream
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 25 Mar 2010 13:27:52 +0000 |
parents | d8c56e7851b8 |
children | dd1570b6f237 |
comparison
equal
deleted
inserted
replaced
3476:213f417ab428 | 3477:fb0b7450c2e8 |
---|---|
635 u->create_request = ngx_http_proxy_create_request; | 635 u->create_request = ngx_http_proxy_create_request; |
636 u->reinit_request = ngx_http_proxy_reinit_request; | 636 u->reinit_request = ngx_http_proxy_reinit_request; |
637 u->process_header = ngx_http_proxy_process_status_line; | 637 u->process_header = ngx_http_proxy_process_status_line; |
638 u->abort_request = ngx_http_proxy_abort_request; | 638 u->abort_request = ngx_http_proxy_abort_request; |
639 u->finalize_request = ngx_http_proxy_finalize_request; | 639 u->finalize_request = ngx_http_proxy_finalize_request; |
640 r->state = 0; | |
640 | 641 |
641 if (plcf->redirects) { | 642 if (plcf->redirects) { |
642 u->rewrite_redirect = ngx_http_proxy_rewrite_redirect; | 643 u->rewrite_redirect = ngx_http_proxy_rewrite_redirect; |
643 } | 644 } |
644 | 645 |
1196 ctx->status_count = 0; | 1197 ctx->status_count = 0; |
1197 ctx->status_start = NULL; | 1198 ctx->status_start = NULL; |
1198 ctx->status_end = NULL; | 1199 ctx->status_end = NULL; |
1199 | 1200 |
1200 r->upstream->process_header = ngx_http_proxy_process_status_line; | 1201 r->upstream->process_header = ngx_http_proxy_process_status_line; |
1202 r->state = 0; | |
1201 | 1203 |
1202 return NGX_OK; | 1204 return NGX_OK; |
1203 } | 1205 } |
1204 | 1206 |
1205 | 1207 |