Skip to content

Instantly share code, notes, and snippets.

@jmkim
Created December 26, 2021 07:27
Show Gist options
  • Save jmkim/d954404c912cfff7c4e6f3688cb73eb0 to your computer and use it in GitHub Desktop.
Save jmkim/d954404c912cfff7c4e6f3688cb73eb0 to your computer and use it in GitHub Desktop.
Patch for ignoring unexpected escape character (\) in forwarded-parse
diff --git a/index.js b/index.js
index df16834..0330d3a 100644
--- a/index.js
+++ b/index.js
@@ -118,6 +118,7 @@ function parse(header) {
parameter = undefined;
start = end = -1;
} else {
+ continue
throw new ParseError(unexpectedCharacterMessage(header, i), header);
}
} else if (code === 0x20 || code === 0x09) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment