From 5f44b9614426b7df77c78de3e0de06b3f6c1d4f3 Mon Sep 17 00:00:00 2001 From: Alex Hultman Date: Fri, 25 Oct 2024 22:39:15 +0200 Subject: [PATCH] Add one more edge case --- tests/http_test.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/http_test.ts b/tests/http_test.ts index 86c3f14ca..b1f304a64 100644 --- a/tests/http_test.ts +++ b/tests/http_test.ts @@ -14,6 +14,11 @@ const testCases: TestCase[] = [ description: "Valid GET request", expectedStatus: [[200, 299]], }, + { + request: "GET / HTTP/1.1\r\nhoSt:\texample.com\r\nempty:\r\n\r\n", + description: "Valid GET request with edge cases", + expectedStatus: [[200, 299]], + }, { request: "GET / HTTP/1.1\r\nHost: example.com\r\nX-Invalid[]: test\r\n\r\n", description: "Invalid header characters",