mirror of
https://github.com/nginx/nginx.git
synced 2024-12-20 14:13:33 -06:00
reset a parsing state to parse correctly an upstream response,
if 400 or 414 response has been redirected to upstream
This commit is contained in:
parent
c089b0a0d4
commit
aed1ac1e68
@ -637,6 +637,7 @@ ngx_http_proxy_handler(ngx_http_request_t *r)
|
||||
u->process_header = ngx_http_proxy_process_status_line;
|
||||
u->abort_request = ngx_http_proxy_abort_request;
|
||||
u->finalize_request = ngx_http_proxy_finalize_request;
|
||||
r->state = 0;
|
||||
|
||||
if (plcf->redirects) {
|
||||
u->rewrite_redirect = ngx_http_proxy_rewrite_redirect;
|
||||
@ -1198,6 +1199,7 @@ ngx_http_proxy_reinit_request(ngx_http_request_t *r)
|
||||
ctx->status_end = NULL;
|
||||
|
||||
r->upstream->process_header = ngx_http_proxy_process_status_line;
|
||||
r->state = 0;
|
||||
|
||||
return NGX_OK;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user