Commit f6a32641 authored by Honfika's avatar Honfika

CheckAuthorization fix

parent 095f4e57
......@@ -109,14 +109,9 @@ namespace Titanium.Web.Proxy
excluded = true;
}
if (!excluded)
if (!excluded && await CheckAuthorization(clientStreamWriter, connectRequestHeaders) == false)
{
if (await CheckAuthorization(clientStreamWriter, connectRequestHeaders) == false)
{
return;
}
httpRemoteUri = new Uri("https://" + httpCmdSplit[1]);
return;
}
//write back successfull CONNECT response
......@@ -129,6 +124,8 @@ namespace Titanium.Web.Proxy
if (!excluded)
{
httpRemoteUri = new Uri("https://" + httpCmdSplit[1]);
SslStream sslStream = null;
try
......
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