Skip to content

Commit

Permalink
Fix QUIC auth scheme
Browse files Browse the repository at this point in the history
Auth controller still uses https:// for QUIC.
  • Loading branch information
klzgrad committed Jan 16, 2019
1 parent 22f93a0 commit e43c4d8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/net/tools/naive/naive_proxy_bin.cc
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,11 @@ std::unique_ptr<net::URLRequestContext> BuildURLRequestContext(
!params.proxy_pass.empty()) {
auto* session = context->http_transaction_factory()->GetSession();
auto* auth_cache = session->http_auth_cache();
GURL auth_origin(params.proxy_url);
std::string proxy_url = params.proxy_url;
if (proxy_url.compare(0, 7, "quic://") == 0) {
proxy_url.replace(0, 4, "https");
}
GURL auth_origin(proxy_url);
net::AuthCredentials credentials(base::ASCIIToUTF16(params.proxy_user),
base::ASCIIToUTF16(params.proxy_pass));
auth_cache->Add(auth_origin, /*realm=*/std::string(),
Expand Down

0 comments on commit e43c4d8

Please sign in to comment.