Commit ed1c6ba3 authored by justcoding121's avatar justcoding121 Committed by justcoding121

Merge pull request #269 from kasajian/develop

On CancelRequest, bypass connection
parents 7e4c20f8 e7f785da
...@@ -340,7 +340,7 @@ namespace Titanium.Web.Proxy ...@@ -340,7 +340,7 @@ namespace Titanium.Web.Proxy
} }
//if upgrading to websocket then relay the requet without reading the contents //if upgrading to websocket then relay the requet without reading the contents
if (args.WebSession.Request.UpgradeToWebSocket) if (!args.WebSession.Request.CancelRequest && args.WebSession.Request.UpgradeToWebSocket)
{ {
await TcpHelper.SendRaw(this, await TcpHelper.SendRaw(this,
httpRemoteUri.Host, httpRemoteUri.Port, httpRemoteUri.Host, httpRemoteUri.Port,
...@@ -351,7 +351,7 @@ namespace Titanium.Web.Proxy ...@@ -351,7 +351,7 @@ namespace Titanium.Web.Proxy
break; break;
} }
if (connection == null) if (!args.WebSession.Request.CancelRequest && connection == null)
{ {
connection = await GetServerConnection(args); connection = await GetServerConnection(args);
} }
......
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