Skip to content
This repository has been archived by the owner on Jul 9, 2023. It is now read-only.

Commit

Permalink
If connection is going to close don't continue
Browse files Browse the repository at this point in the history
  • Loading branch information
justcoding121 committed Dec 26, 2015
1 parent e128d6b commit 008ef8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Titanium.Web.Proxy/RequestHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ private static void HandleHttpSessionRequest(TcpClient client, string httpCmd, S

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;
Expand Down

0 comments on commit 008ef8d

Please sign in to comment.