http-parser icon indicating copy to clipboard operation
http-parser copied to clipboard

add settings flags, refactor lenient_http_headers setting

Open jasnell opened this issue 9 years ago • 0 comments

A previous change during a security fix added the ability to set a lenient_http_headers flag on the HTTP Parser instance. The way it was done was a bit of a hack at the time in order to avoid an ABI breaking change. This PR adds a new uint32_t flags field to http_parser_settings in order to provide a more robust and correct way of passing these kinds of settings into a parser instance.

Note: This is an ABI change so it would require a semver-major bump

/cc @indutny

jasnell avatar Jul 05 '16 19:07 jasnell