Skip to content

Commit 155a1f6

Browse files
twoyang0917pgjones
authored andcommitted
encode headers using latin-1
1 parent c37a9ab commit 155a1f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hypercorn/app_wrappers.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def start_response(
9999
raw, _ = status.split(" ", 1)
100100
status_code = int(raw)
101101
headers = [
102-
(name.lower().encode("ascii"), value.encode("ascii"))
102+
(name.lower().encode("latin-1"), value.encode("latin-1"))
103103
for name, value in response_headers
104104
]
105105
response_started = True

0 commit comments

Comments
 (0)