According to RFC 2616 the Message Headers are case-insensitive (stated as: "Field names are case-insensitive"). However, your code is checking for "Content-Length" and "Transfer-Encoding" in a case sensitive manner so it does not process the response for some web servers. Any chance this can be modified? If a PR is better I can provide one.
According to RFC 2616 the Message Headers are case-insensitive (stated as: "Field names are case-insensitive"). However, your code is checking for "Content-Length" and "Transfer-Encoding" in a case sensitive manner so it does not process the response for some web servers. Any chance this can be modified? If a PR is better I can provide one.