From 5651aea80472bf9a1f7d2718c78c0de08984aa1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johan=20Bergstr=C3=B6m?= Date: Sat, 27 Feb 2016 11:58:49 +1100 Subject: [PATCH] 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 --- test.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test.c b/test.c index 4fcebaf..7b01dc3 100644 --- a/test.c +++ b/test.c @@ -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"