Commit 5e7c85a3 authored by justcoding121's avatar justcoding121 Committed by justcoding121

If connection is going to close don't continue

parent 2961c697
......@@ -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