elnormous/HTTPRequest

Message headers are case-insensitive

tysenmoore-xse opened this issue · 1 comments

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.

Thank you! Fixed in e2863f8.