Skip to content
This repository has been archived by the owner on Nov 6, 2022. It is now read-only.

Commit

Permalink
test: add a test for for obstext characters (> 0x80)
Browse files Browse the repository at this point in the history
Create a test added for nodejs in nodejs/node@954a4b4b.

PR-URL: #287
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
jbergstroem authored and jasnell committed Mar 4, 2016
1 parent dbcda19 commit 5651aea
Showing 1 changed file with 5 additions and 0 deletions.
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

0 comments on commit 5651aea

Please sign in to comment.