create request context: keep parsed and string urls in sync

ServerContext::GetQueryOptions modifies the url passed to it, removing any
ModPagespeedFoo=Bar query parameters.  CreateNewProxyFetch needs that modified
url but we were giving it the unmodified one.

Fixes #83
This commit is contained in:
Jeff Kaufman
2012-11-29 10:32:18 -05:00
parent 14c7fb1c8d
commit 45fb3c4254
+4
View File
@@ -1003,6 +1003,10 @@ ps_create_request_context(ngx_http_request_t* r, bool is_resource_fetch) {
return CreateRequestContext::kError;
}
// ps_determine_options modified url, removing any ModPagespeedFoo=Bar query
// parameters. Keep url_string in sync with url.
url.Spec().CopyToString(&url_string);
net_instaweb::RewriteOptions* options;
if (custom_options == NULL) {
options = cfg_s->server_context->global_options();