mirror of
https://github.com/nginx/nginx.git
synced 2026-10-21 11:31:24 +00:00
reset r->content_handler in a named location
This commit is contained in:
parent
be02468c6d
commit
887dd4e5d5
1 changed files with 2 additions and 1 deletions
|
|
@ -1916,7 +1916,7 @@ ngx_http_named_location(ngx_http_request_t *r, ngx_str_t *name)
|
|||
"named location: %V \"%V?%V\"", name, &r->uri, &r->args);
|
||||
|
||||
r->internal = 1;
|
||||
|
||||
r->content_handler = NULL;
|
||||
r->loc_conf = clcfp[i]->loc_conf;
|
||||
|
||||
ngx_http_update_location_config(r);
|
||||
|
|
@ -1924,6 +1924,7 @@ ngx_http_named_location(ngx_http_request_t *r, ngx_str_t *name)
|
|||
cmcf = ngx_http_get_module_main_conf(r, ngx_http_core_module);
|
||||
|
||||
r->phase_handler = cmcf->phase_engine.location_rewrite_index;
|
||||
|
||||
ngx_http_core_run_phases(r);
|
||||
|
||||
return NGX_DONE;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue