Skip to content

Commit

Permalink
Merge pull request #68 from jmbowman/jmbowman/fix_response_charset
Browse files Browse the repository at this point in the history
Add missing charset to response
  • Loading branch information
giovannicimolin authored Dec 16, 2019
2 parents 6894592 + 8e78663 commit 3c7dcaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion poll/poll.py
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ def static_replace_json_handler(cls, func):
def wrapper(self, request_json, suffix=''):
response = json.dumps(func(self, request_json, suffix))
response = replace_static_urls(response, course_id=self.runtime.course_id)
return Response(response, content_type='application/json')
return Response(response, content_type='application/json', charset='utf8')

if HAS_STATIC_REPLACE:
# Only use URL translation if it is available
Expand Down

0 comments on commit 3c7dcaf

Please sign in to comment.