Closed trauty-is-me closed 9 months ago
I have been able to monkey patch the code for now to swap out the checks from: if header_name == b"content-type":
to if header_name.decode().lower() == "content-type":
for all of the header checks.
We will open a PR to fix this issue. Thanks for bringing it to our attention!
This has been fixed v9.40.
Description When attempting to run a server (Django/Daphne in my case), when the
content-type
header is not in lower case theshould_insert_html
function returns false.Reviewing the Commit History this has been in place since ASGI support was introduced.
Refer to: https://asgi.readthedocs.io/en/latest/specs/www.html#http
Expected Behavior Headers should be case insensitve