Skip to content

Commit

Permalink
http: 0xFF is a valid character in header value
Browse files Browse the repository at this point in the history
PR-URL: #65
Reviewed-By: Fedor Indutny <fedor@indutny.com>
  • Loading branch information
lukiano authored and indutny committed Sep 2, 2020
1 parent c7e2204 commit 883d9dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/llhttp/constants.ts
Expand Up @@ -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);
}
Expand Down

0 comments on commit 883d9dd

Please sign in to comment.