Skip to content

Commit bb009b3

Browse files
committed
test: add a test for for obstext characters (> 0x80)
Create a test added for nodejs in nodejs/node@954a4b4b. PR-URL: nodejs#287 Reviewed-By: James M Snell <[email protected]>
1 parent 4465d84 commit bb009b3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3933,6 +3933,11 @@ main (void)
39333933

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

3936+
// Extended characters - see nodejs/test/parallel/test-http-headers-obstext.js
3937+
test_simple("GET / HTTP/1.1\r\n"
3938+
"Test: Düsseldorf\r\n",
3939+
HPE_OK);
3940+
39363941
// Well-formed but incomplete
39373942
test_simple("GET / HTTP/1.1\r\n"
39383943
"Content-Type: text/plain\r\n"

0 commit comments

Comments
 (0)