diff --git a/src/net/tools/naive/naive_connection.cc b/src/net/tools/naive/naive_connection.cc index ee9c68e842..e66988d500 100644 --- a/src/net/tools/naive/naive_connection.cc +++ b/src/net/tools/naive/naive_connection.cc @@ -247,7 +247,7 @@ int NaiveConnection::DoConnectServer() { url::CanonHostInfo host_info; url::SchemeHostPort endpoint( - "http", CanonicalizeHost(origin.host(), &host_info), origin.port(), + "http", CanonicalizeHost(origin.HostForURL(), &host_info), origin.port(), url::SchemeHostPort::ALREADY_CANONICALIZED); if (!endpoint.IsValid()) { LOG(ERROR) << "Connection " << id_ << " to invalid origin " << origin.ToString();