test: add a test for for obstext characters (> 0x80)

Create a test added for nodejs in nodejs/node@954a4b4b.

PR-URL: https://github.com/nodejs/http-parser/pull/287
Reviewed-By: James M Snell <jasnell@gmail.com>
make-http-max-header-size-gyp-configurable v2.6.2
Johan Bergström 9 years ago committed by James M Snell
parent dbcda1961c
commit 5651aea804

@ -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"

Loading…
Cancel
Save