From 70f34f1132444a2fa0a977775d5e5ffd5b8e3448 Mon Sep 17 00:00:00 2001 From: Luciano Leggieri <230980@gmail.com> Date: Wed, 2 Sep 2020 12:05:27 +1000 Subject: [PATCH] http: accept 0xFF as a valid character in header values --- src/llhttp/constants.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/llhttp/constants.ts b/src/llhttp/constants.ts index aec52522..48cfb9b8 100644 --- a/src/llhttp/constants.ts +++ b/src/llhttp/constants.ts @@ -193,7 +193,7 @@ export const TOKEN: CharList = STRICT_TOKEN.concat([ ' ' ]); * character or %x80-FF */ export const HEADER_CHARS: CharList = [ '\t' ]; -for (let i = 32; i < 255; i++) { +for (let i = 32; i <= 255; i++) { if (i !== 127) { HEADER_CHARS.push(i); }