comparison src/http/ngx_http_core_module.c @ 3836:9ccda889a355 stable-0.7

set r->valid_unparsed_uri just after request line processing, it allows to use X-Accel-Redirect'ed URI in a proxy_pass without URI part this fix corresponds to r3616
author Igor Sysoev <igor@sysoev.ru>
date Tue, 14 Dec 2010 19:15:08 +0000
parents 8152369f7037
children
comparison
equal deleted inserted replaced
3835:e122e166987f 3836:9ccda889a355
781 r->phase_handler = 0; 781 r->phase_handler = 0;
782 782
783 } else { 783 } else {
784 cmcf = ngx_http_get_module_main_conf(r, ngx_http_core_module); 784 cmcf = ngx_http_get_module_main_conf(r, ngx_http_core_module);
785 r->phase_handler = cmcf->phase_engine.server_rewrite_index; 785 r->phase_handler = cmcf->phase_engine.server_rewrite_index;
786 }
787
788 if (r->unparsed_uri.len) {
789 r->valid_unparsed_uri = 1;
790 } 786 }
791 787
792 r->valid_location = 1; 788 r->valid_location = 1;
793 #if (NGX_HTTP_GZIP) 789 #if (NGX_HTTP_GZIP)
794 r->gzip_tested = 0; 790 r->gzip_tested = 0;