Skip to content

Commit 53e31e2

Browse files
authored
fix: add charset-utf-8 to response header (#104)
Fixes #103 Specify the charset in the header so the browser knows the success message should be treated as UTF-8.
1 parent 5587c6a commit 53e31e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

google_auth_oauthlib/flow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -517,6 +517,6 @@ def __call__(self, environ, start_response):
517517
Returns:
518518
Iterable[bytes]: The response body.
519519
"""
520-
start_response("200 OK", [("Content-type", "text/plain")])
520+
start_response("200 OK", [("Content-type", "text/plain; charset=utf-8")])
521521
self.last_request_uri = wsgiref.util.request_uri(environ)
522522
return [self._success_message.encode("utf-8")]

0 commit comments

Comments
 (0)