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

Commit 4a8e65d

Browse files
committed
Merge branch 'beta' into stable
2 parents dd18df3 + 881e9f2 commit 4a8e65d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Titanium.Web.Proxy/Helpers/HttpWriter.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ internal Task WriteAsync(string value, CancellationToken cancellationToken = def
4949
return writeAsyncInternal(value, false, cancellationToken);
5050
}
5151

52-
private Task writeAsyncInternal(string value, bool addNewLine, CancellationToken cancellationToken)
52+
private async Task writeAsyncInternal(string value, bool addNewLine, CancellationToken cancellationToken)
5353
{
5454
int newLineChars = addNewLine ? newLine.Length : 0;
5555
int charCount = value.Length;
@@ -67,7 +67,7 @@ private Task writeAsyncInternal(string value, bool addNewLine, CancellationToken
6767
idx += newLineChars;
6868
}
6969

70-
return stream.WriteAsync(buffer, 0, idx, cancellationToken);
70+
await stream.WriteAsync(buffer, 0, idx, cancellationToken);
7171
}
7272
finally
7373
{
@@ -87,7 +87,7 @@ private Task writeAsyncInternal(string value, bool addNewLine, CancellationToken
8787
idx += newLineChars;
8888
}
8989

90-
return stream.WriteAsync(buffer, 0, idx, cancellationToken);
90+
await stream.WriteAsync(buffer, 0, idx, cancellationToken);
9191
}
9292
}
9393

0 commit comments

Comments
 (0)