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

Commit 1bce248

Browse files
committed
small cleanup
1 parent 3e7c849 commit 1bce248

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Titanium.Web.Proxy/StreamExtended/Network/CustomBufferedStream.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ static CustomBufferedStream()
5151
try
5252
{
5353
var method = typeof(NetworkStream).GetMethod(nameof(Stream.ReadAsync),
54-
new Type[] { typeof(byte[]), typeof(int), typeof(int), typeof(CancellationToken) });
54+
new[] { typeof(byte[]), typeof(int), typeof(int), typeof(CancellationToken) });
5555
if (method != null && method.DeclaringType != typeof(Stream))
5656
{
5757
networkStreamHack = false;
@@ -684,8 +684,7 @@ public override int EndRead(IAsyncResult asyncResult)
684684

685685
return ((TaskResult<int>)asyncResult).Result;
686686
}
687-
688-
687+
689688
/// <summary>
690689
/// Fix the .net bug with SslStream slow WriteAsync
691690
/// https://github.com/justcoding121/Titanium-Web-Proxy/issues/495
@@ -709,6 +708,7 @@ public override IAsyncResult BeginWrite(byte[] buffer, int offset, int count, As
709708

710709
return vAsyncResult;
711710
}
711+
712712
public override void EndWrite(IAsyncResult asyncResult)
713713
{
714714
if (!networkStreamHack)

0 commit comments

Comments
 (0)