Skip to content

Commit

Permalink
Fixed HttpDocumentRetrieverTests.HttpVersionTest.
Browse files Browse the repository at this point in the history
  • Loading branch information
prochnowc committed Jan 3, 2025
1 parent 9f20084 commit 8a16a63
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ public async Task HttpVersionTest(Version version)
var callback = new Func<HttpRequestMessage, CancellationToken, Task<HttpResponseMessage>>((msg, ct) =>
{
Assert.Equal(version, msg.Version);
return Task.FromResult(new HttpResponseMessage());
return Task.FromResult(new HttpResponseMessage { Content = new StringContent(string.Empty) });
});

using var httpClient = new HttpClient(new DelegateHttpMessageHandler(callback));
Expand Down

0 comments on commit 8a16a63

Please sign in to comment.