Closed bnoordhuis closed 4 years ago
This doesn't resolve the problem with enum http_errno
. I think INVALID_TRANSFER_ENCODING
needs to be moved to the end of HTTP_ERRNO_MAP
or something.
Good call, I forgot to update that one. Done in a fix-up commit.
Fix ABI breakage introduced in commit 7d5c99d ("Support multi-coding Transfer-Encoding") by undoing the change in
sizeof(http_parser)
.Restore the size of the
flags
field and shrink theindex
field from 7 to 5 bits. It track strings up tostrlen("Transfer-Encoding")
bytes in size so 2^5 == 32 is wide enough.Fixes: https://github.com/nodejs/http-parser/issues/502