Skip to content

Commit

Permalink
add optional parameters to Content-Type
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Egleston committed May 3, 2022
1 parent 5eb4633 commit fe50bc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/utils/http_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def chunked_drip(handler):
handler.send_response(200)
accept = handler.headers.get('Accept')
if accept is not None:
handler.send_header('Content-Type', accept)
handler.send_header('Content-Type', accept + '; charset=utf-8')
handler.send_header('Transfer-Encoding', 'chunked')
handler.end_headers()

Expand Down

0 comments on commit fe50bc0

Please sign in to comment.