Commit 008ef8dc authored by titanium007's avatar titanium007

If connection is going to close don't continue

parent e128d6be
......@@ -227,7 +227,7 @@ namespace Titanium.Web.Proxy
HandleHttpSessionResponse(args);
if (args.ResponseHeaders.Any(x => x.Name.ToLower() == "proxy-connection" && x.Value.ToLower() == "close"))
if (args.ResponseHeaders.Any(x => x.Name.ToLower() == "connection" && x.Value.ToLower() == "close"))
{
Dispose(client, clientStream, clientStreamReader, clientStreamWriter, args);
return;
......
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