From cf1b051f0ee8a02fd081b01304bffcf2d325a02c Mon Sep 17 00:00:00 2001 From: sta Date: Tue, 4 Feb 2020 21:46:03 +0900 Subject: [PATCH] [Modify] Replace it --- websocket-sharp/Net/ResponseStream.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/websocket-sharp/Net/ResponseStream.cs b/websocket-sharp/Net/ResponseStream.cs index 832dd274..5ac59b24 100644 --- a/websocket-sharp/Net/ResponseStream.cs +++ b/websocket-sharp/Net/ResponseStream.cs @@ -276,10 +276,8 @@ namespace WebSocketSharp.Net } } - if (_sendChunked) { - var last = getChunkSizeBytes (0, true); - _write (last, 0, last.Length); - } + if (_sendChunked) + _write (_lastChunk, 0, 5); _body.Dispose (); _response.Abort ();