WSGI middleware should lowercase ASGI headers (#813)

This commit is contained in:
Tom Christie 2020-01-29 11:15:38 +00:00 committed by GitHub
parent 508ab752b4
commit 3c7e6af163
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -120,7 +120,7 @@ class WSGIResponder:
status_code_string, _ = status.split(" ", 1)
status_code = int(status_code_string)
headers = [
(name.strip().encode("ascii"), value.strip().encode("ascii"))
(name.strip().encode("ascii").lower(), value.strip().encode("ascii"))
for name, value in response_headers
]
self.send_queue.append(