diff --git a/components/net/http_loader.rs b/components/net/http_loader.rs index 425f38f1e0e..ca972034471 100644 --- a/components/net/http_loader.rs +++ b/components/net/http_loader.rs @@ -907,7 +907,7 @@ fn http_network_or_cache_fetch(request: Rc, let headers = &mut *http_request.headers.borrow_mut(); let host = Host { hostname: current_url.host_str().unwrap().to_owned(), - port: current_url.port_or_known_default() + port: current_url.port() }; headers.set(host); // unlike http_loader, we should not set the accept header