belyalov / tinyweb

Simple and lightweight HTTP async server for micropython
MIT License
239 stars 40 forks source link

`read_headers` should be case-insensitive on keys #53

Open eyJhb opened 1 year ago

eyJhb commented 1 year ago

Make sure you are running the latest version of TinyWeb before reporting an issue.

Device and/or platform:

Description of problem: read_headers is not case-insensitive on keys, as described in the standard. This can lead to problems, if the client uses different cases for ie. content-length.

https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers

Expected: Lowercase all the received headers.

Traceback (if applicable):

Additional info: