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));