Commit 9b4e3dca authored by Honfika's avatar Honfika

fix for #654

parent f5298575
......@@ -121,7 +121,6 @@ namespace Titanium.Web.Proxy
bool isClientHello = clientHelloInfo != null;
if (clientHelloInfo != null)
{
connectRequest.IsHttps = true;
connectRequest.TunnelType = TunnelType.Https;
connectRequest.ClientHelloInfo = clientHelloInfo;
}
......@@ -130,6 +129,7 @@ namespace Titanium.Web.Proxy
if (decryptSsl && clientHelloInfo != null)
{
connectRequest.IsHttps = true; // todo: move this line to the previous "if"
clientConnection.SslProtocol = clientHelloInfo.SslProtocol;
bool http2Supported = false;
......
......@@ -432,7 +432,6 @@ retry:
{
session.TimeLine["HTTPS Established"] = DateTime.Now;
}
}
}
catch (IOException ex) when (ex.HResult == unchecked((int)0x80131620) && retry && enabledSslProtocols >= SslProtocols.Tls11)
......
......@@ -353,7 +353,7 @@ namespace Titanium.Web.Proxy
supportedAcceptEncoding.Add("identity");
requestHeaders.SetOrAddHeaderValue(KnownHeaders.AcceptEncoding,
string.Join(",", supportedAcceptEncoding));
string.Join(", ", supportedAcceptEncoding));
}
requestHeaders.FixProxyHeaders();
......
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