Commit 7980a5a1 authored by Honfika's avatar Honfika

fix

parent bc85dd9c
...@@ -302,6 +302,11 @@ namespace Titanium.Web.Proxy.Network.Tcp ...@@ -302,6 +302,11 @@ namespace Titanium.Web.Proxy.Network.Tcp
} }
} }
if (isHttps && sslProtocol == SslProtocols.None)
{
sslProtocol = proxyServer.SupportedSslProtocols;
}
bool useUpstreamProxy1 = false; bool useUpstreamProxy1 = false;
// check if external proxy is set for HTTP/HTTPS // check if external proxy is set for HTTP/HTTPS
......
...@@ -68,7 +68,10 @@ namespace Titanium.Web.Proxy ...@@ -68,7 +68,10 @@ namespace Titanium.Web.Proxy
UserData = connectArgs?.UserData UserData = connectArgs?.UserData
}; };
args.HttpClient.Request.IsHttps = isHttps; if (isHttps)
{
args.HttpClient.Request.IsHttps = true;
}
try try
{ {
...@@ -358,7 +361,7 @@ namespace Titanium.Web.Proxy ...@@ -358,7 +361,7 @@ namespace Titanium.Web.Proxy
.Where(x => ProxyConstants.ProxySupportedCompressions.Contains(x))); .Where(x => ProxyConstants.ProxySupportedCompressions.Contains(x)));
// uncompressed is always supported by proxy // uncompressed is always supported by proxy
supportedAcceptEncoding.Add("identity"); //supportedAcceptEncoding.Add("identity");
requestHeaders.SetOrAddHeaderValue(KnownHeaders.AcceptEncoding, requestHeaders.SetOrAddHeaderValue(KnownHeaders.AcceptEncoding,
string.Join(", ", supportedAcceptEncoding)); string.Join(", ", supportedAcceptEncoding));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment