Skip to content

Commit b6c2768

Browse files
committed
Fix CA2016: Forward the CancellationToken parameter to methods that take one
1 parent 6e32ad5 commit b6c2768

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/OpenApiNSwagClientTests/FakeHttpClientWrapper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ protected override HttpResponseMessage Send(HttpRequestMessage request, Cancella
9494
// Capture the request body here, before it becomes inaccessible because the request has been disposed.
9595
if (request.Content != null)
9696
{
97-
using Stream stream = request.Content.ReadAsStream();
97+
using Stream stream = request.Content.ReadAsStream(cancellationToken);
9898
using var reader = new StreamReader(stream, Encoding.UTF8);
9999
RequestBody = reader.ReadToEnd();
100100
}

0 commit comments

Comments
 (0)