From 50e8948bb985d7e299a1c0eb79bcd71e0b13d78a Mon Sep 17 00:00:00 2001 From: moozzyk Date: Mon, 6 Jun 2016 15:10:55 -0700 Subject: [PATCH] Fixing BadRequest tests to not try sending data after Bad Request --- .../BadHttpRequestTests.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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); } }