comparison src/http/ngx_http_core_module.c @ 1915:91879041b681

reset r->content_handler in a named location
author Igor Sysoev <igor@sysoev.ru>
date Tue, 04 Mar 2008 14:57:07 +0000
parents c0f873458e2b
children dc0f5013f674
comparison
equal deleted inserted replaced
1914:d02fb350d17d 1915:91879041b681
1914 1914
1915 ngx_log_debug3(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, 1915 ngx_log_debug3(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
1916 "named location: %V \"%V?%V\"", name, &r->uri, &r->args); 1916 "named location: %V \"%V?%V\"", name, &r->uri, &r->args);
1917 1917
1918 r->internal = 1; 1918 r->internal = 1;
1919 1919 r->content_handler = NULL;
1920 r->loc_conf = clcfp[i]->loc_conf; 1920 r->loc_conf = clcfp[i]->loc_conf;
1921 1921
1922 ngx_http_update_location_config(r); 1922 ngx_http_update_location_config(r);
1923 1923
1924 cmcf = ngx_http_get_module_main_conf(r, ngx_http_core_module); 1924 cmcf = ngx_http_get_module_main_conf(r, ngx_http_core_module);
1925 1925
1926 r->phase_handler = cmcf->phase_engine.location_rewrite_index; 1926 r->phase_handler = cmcf->phase_engine.location_rewrite_index;
1927
1927 ngx_http_core_run_phases(r); 1928 ngx_http_core_run_phases(r);
1928 1929
1929 return NGX_DONE; 1930 return NGX_DONE;
1930 } 1931 }
1931 1932