Skip to content

Commit

Permalink
Add one more edge case
Browse files Browse the repository at this point in the history
  • Loading branch information
uNetworkingAB committed Oct 25, 2024
1 parent 5ee9ac5 commit 5f44b96
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/http_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 5f44b96

Please sign in to comment.