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

Commit 008ef8d

Browse files
committed
If connection is going to close don't continue
1 parent e128d6b commit 008ef8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Titanium.Web.Proxy/RequestHandler.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ private static void HandleHttpSessionRequest(TcpClient client, string httpCmd, S
227227

228228
HandleHttpSessionResponse(args);
229229

230-
if (args.ResponseHeaders.Any(x => x.Name.ToLower() == "proxy-connection" && x.Value.ToLower() == "close"))
230+
if (args.ResponseHeaders.Any(x => x.Name.ToLower() == "connection" && x.Value.ToLower() == "close"))
231231
{
232232
Dispose(client, clientStream, clientStreamReader, clientStreamWriter, args);
233233
return;

0 commit comments

Comments
 (0)