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

ignore headers transfer_encoding_chunked and content_length to work with http assemblers.

Open alperakcan opened this issue 8 years ago • 1 comments

added ignore_header_transfer_encodig_chunked and ignore_header_content_length to settings.

ignore_header_content_length: useful if body length and content length does not match. happens with owa servers. or working with pre http assemblers that unzips compressed content without changing content-length.

ignore_header_transfer_encodig_chunked: useful when working with pre-http assemblers which assembles chunked content into one http packet without changing transfer-encoding field.

may be useful for someone.

alperakcan avatar Jun 02 '17 12:06 alperakcan

Thanks, but since it's an ABI change (changes sizeof(struct http_parser)), it can't land until the next major release. That's not expected to happen anytime soon.

bnoordhuis avatar Jun 05 '17 11:06 bnoordhuis