From 8a16a63c8eb00540a80260cb6a697b6807a05b25 Mon Sep 17 00:00:00 2001 From: Christian Prochnow Date: Fri, 3 Jan 2025 12:17:48 +0100 Subject: [PATCH] Fixed HttpDocumentRetrieverTests.HttpVersionTest. --- .../HttpDocumentRetrieverTests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/Microsoft.IdentityModel.Protocols.Tests/HttpDocumentRetrieverTests.cs b/test/Microsoft.IdentityModel.Protocols.Tests/HttpDocumentRetrieverTests.cs index 2d94df9ee5..68d809e3f2 100644 --- a/test/Microsoft.IdentityModel.Protocols.Tests/HttpDocumentRetrieverTests.cs +++ b/test/Microsoft.IdentityModel.Protocols.Tests/HttpDocumentRetrieverTests.cs @@ -193,7 +193,7 @@ public async Task HttpVersionTest(Version version) var callback = new Func>((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));