comparison src/http/modules/ngx_http_proxy_module.c @ 3615:31e9677b15a1

allow spaces in URI
author Igor Sysoev <igor@sysoev.ru>
date Tue, 15 Jun 2010 09:31:19 +0000
parents 39535a91776d
children 9061fdb2ed8c
comparison
equal deleted inserted replaced
3614:4b4385492f2a 3615:31e9677b15a1
909 909
910 } else { 910 } else {
911 loc_len = (r->valid_location && ctx->vars.uri.len) ? 911 loc_len = (r->valid_location && ctx->vars.uri.len) ?
912 plcf->location.len : 0; 912 plcf->location.len : 0;
913 913
914 if (r->quoted_uri || r->internal) { 914 if (r->quoted_uri || r->space_in_uri || r->internal) {
915 escape = 2 * ngx_escape_uri(NULL, r->uri.data + loc_len, 915 escape = 2 * ngx_escape_uri(NULL, r->uri.data + loc_len,
916 r->uri.len - loc_len, NGX_ESCAPE_URI); 916 r->uri.len - loc_len, NGX_ESCAPE_URI);
917 } 917 }
918 918
919 uri_len = ctx->vars.uri.len + r->uri.len - loc_len + escape 919 uri_len = ctx->vars.uri.len + r->uri.len - loc_len + escape