diff --git a/test/Microsoft.AspNetCore.Server.KestrelTests/BadHttpRequestTests.cs b/test/Microsoft.AspNetCore.Server.KestrelTests/BadHttpRequestTests.cs index b566c6e488..591fac9c22 100644 --- a/test/Microsoft.AspNetCore.Server.KestrelTests/BadHttpRequestTests.cs +++ b/test/Microsoft.AspNetCore.Server.KestrelTests/BadHttpRequestTests.cs @@ -210,10 +210,7 @@ namespace Microsoft.AspNetCore.Server.KestrelTests { using (var connection = server.CreateConnection()) { - await connection.SendEnd( - $"GET {path} HTTP/1.1", - "", - ""); + await connection.SendEnd($"GET {path} HTTP/1.1\r\n"); await ReceiveBadRequestResponse(connection); } }