Skip to content

Commit 883d9dd

Browse files
lukianoindutny
authored andcommitted
http: 0xFF is a valid character in header value
PR-URL: #65 Reviewed-By: Fedor Indutny <[email protected]>
1 parent c7e2204 commit 883d9dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/llhttp/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ export const TOKEN: CharList = STRICT_TOKEN.concat([ ' ' ]);
193193
* character or %x80-FF
194194
*/
195195
export const HEADER_CHARS: CharList = [ '\t' ];
196-
for (let i = 32; i < 255; i++) {
196+
for (let i = 32; i <= 255; i++) {
197197
if (i !== 127) {
198198
HEADER_CHARS.push(i);
199199
}

0 commit comments

Comments
 (0)