| Index: net/http/http_stream_factory_impl.cc
|
| diff --git a/net/http/http_stream_factory_impl.cc b/net/http/http_stream_factory_impl.cc
|
| index 78238b946e13d20a976dfae78b28239117748c98..235122d2e834ae363f77203bc88277c5ad2c96e5 100644
|
| --- a/net/http/http_stream_factory_impl.cc
|
| +++ b/net/http/http_stream_factory_impl.cc
|
| @@ -24,11 +24,10 @@ namespace {
|
|
|
| GURL UpgradeUrlToHttps(const GURL& original_url, int port) {
|
| GURL::Replacements replacements;
|
| - // new_sheme and new_port need to be in scope here because GURL::Replacements
|
| - // references the memory contained by them directly.
|
| - const std::string new_scheme = "https";
|
| + // new_port needs to be in scope here because GURL::Replacements references
|
| + // the memory contained by it directly.
|
| const std::string new_port = base::IntToString(port);
|
| - replacements.SetSchemeStr(new_scheme);
|
| + replacements.SetSchemeStr("https");
|
| replacements.SetPortStr(new_port);
|
| return original_url.ReplaceComponents(replacements);
|
| }
|
|
|