mirror of
https://github.com/nginx/nginx.git
synced 2025-08-04 21:46:14 +08:00
Merge of r4615: write handler reset in ngx_http_named_location().
On internal redirects this happens via ngx_http_handler() call, which is not called on named location redirect. As a result incorrect write handler remained (if previously set) and this might cause incorrect behaviour (likely request hang). Patch by Yichun Zhang (agentzh).
This commit is contained in:
parent
f87ed889a0
commit
7162fdee0f
@ -2599,6 +2599,7 @@ ngx_http_named_location(ngx_http_request_t *r, ngx_str_t *name)
|
||||
|
||||
r->phase_handler = cmcf->phase_engine.location_rewrite_index;
|
||||
|
||||
r->write_event_handler = ngx_http_core_run_phases;
|
||||
ngx_http_core_run_phases(r);
|
||||
|
||||
return NGX_DONE;
|
||||
|
Loading…
Reference in New Issue
Block a user