1
0
Fork 0
mirror of https://github.com/VSadov/Satori.git synced 2025-06-11 18:20:26 +09:00

Get response headers from LoopbackServer implementation (#104774)

This commit is contained in:
Ahmet Ibrahim Aksoy 2024-07-12 19:37:35 +02:00 committed by GitHub
parent e587186273
commit a19fc08e6c
Signed by: github
GPG key ID: B5690EEEBB952194

View file

@ -116,7 +116,7 @@ namespace System.Net.Http.WinHttpHandlerFunctional.Tests
await server.AcceptConnectionAsync(async connection =>
{
await connection.ReadRequestDataAsync();
await connection.SendResponseAsync($"HTTP/1.1 200 OK\r\nDate: {DateTimeOffset.UtcNow:R)}\r\nContent-Length: 1000\r\n\r\n");
await connection.SendResponseAsync(LoopbackServer.GetHttpResponseHeaders(contentLength: 1000));
await tcs.Task;
});
});