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

Commit a628c99

Browse files
committed
websocket fix in transparent mode, #792
1 parent cd28f66 commit a628c99

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/Titanium.Web.Proxy/WebSocketHandler.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,7 @@ private async Task handleWebSocketUpgrade(SessionEventArgs args,
2929
await HeaderParser.ReadHeaders(serverConnection.Stream, response.Headers,
3030
cancellationToken);
3131

32-
if (!args.IsTransparent)
33-
{
34-
await clientStream.WriteResponseAsync(response, cancellationToken);
35-
}
32+
await clientStream.WriteResponseAsync(response, cancellationToken);
3633

3734
// If user requested call back then do it
3835
if (!args.HttpClient.Response.Locked)

0 commit comments

Comments
 (0)