Skip to content
This repository was archived by the owner on Nov 6, 2022. It is now read-only.
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
test: add a test for for obstext characters (> 0x80)
Create a test added for nodejs in nodejs/node@954a4b4b.
  • Loading branch information
jbergstroem committed Feb 27, 2016
commit 158b9cf2e4b6d7ce3a125b37cfaa052da1b8b347
5 changes: 5 additions & 0 deletions test.c
Original file line number Diff line number Diff line change
Expand Up @@ -3933,6 +3933,11 @@ main (void)

test_simple("GET / HTP/1.1\r\n\r\n", HPE_INVALID_VERSION);

// Extended characters - see nodejs/test/parallel/test-http-headers-obstext.js
test_simple("GET / HTTP/1.1\r\n"
"Test: Düsseldorf\r\n",
HPE_OK);

// Well-formed but incomplete
test_simple("GET / HTTP/1.1\r\n"
"Content-Type: text/plain\r\n"
Expand Down