mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1153924 - do not use altsvc with proxy r=hurley
This commit is contained in:
parent
50eedfa31c
commit
669f68c699
@ -48,6 +48,11 @@ AltSvcMapping::ProcessHeader(const nsCString &buf, const nsCString &originScheme
|
||||
return;
|
||||
}
|
||||
|
||||
if (proxyInfo && !proxyInfo->IsDirect()) {
|
||||
LOG(("AltSvcMapping::ProcessHeader ignoring due to proxy\n"));
|
||||
return;
|
||||
}
|
||||
|
||||
bool isHTTPS;
|
||||
if (NS_FAILED(SchemeIsHTTPS(originScheme, isHTTPS))) {
|
||||
return;
|
||||
|
@ -4826,6 +4826,7 @@ nsHttpChannel::BeginConnect()
|
||||
nsRefPtr<AltSvcMapping> mapping;
|
||||
if ((scheme.Equals(NS_LITERAL_CSTRING("http")) ||
|
||||
scheme.Equals(NS_LITERAL_CSTRING("https"))) &&
|
||||
(!proxyInfo || proxyInfo->IsDirect()) &&
|
||||
(mapping = gHttpHandler->GetAltServiceMapping(scheme,
|
||||
host, port,
|
||||
mPrivateBrowsing))) {
|
||||
|
Loading…
Reference in New Issue
Block a user