mirror of
https://github.com/nginx/nginx.git
synced 2024-11-24 04:49:01 +08:00
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
This commit is contained in:
parent
d60cb3f9f7
commit
772ecd6cc6
@ -785,10 +785,6 @@ ngx_http_handler(ngx_http_request_t *r)
|
||||
r->phase_handler = cmcf->phase_engine.server_rewrite_index;
|
||||
}
|
||||
|
||||
if (r->unparsed_uri.len) {
|
||||
r->valid_unparsed_uri = 1;
|
||||
}
|
||||
|
||||
r->valid_location = 1;
|
||||
#if (NGX_HTTP_GZIP)
|
||||
r->gzip_tested = 0;
|
||||
|
@ -752,6 +752,7 @@ ngx_http_process_request_line(ngx_event_t *rev)
|
||||
r->unparsed_uri.len = r->uri_end - r->uri_start;
|
||||
r->unparsed_uri.data = r->uri_start;
|
||||
|
||||
r->valid_unparsed_uri = 1;
|
||||
|
||||
r->method_name.len = r->method_end - r->request_start + 1;
|
||||
r->method_name.data = r->request_line.data;
|
||||
|
Loading…
Reference in New Issue
Block a user