Skip to content

Commit

Permalink
Fixed: notfound message is not utf8. fixes #500
Browse files Browse the repository at this point in the history
  • Loading branch information
iredmail committed Jun 9, 2019
1 parent 16c5395 commit f1d1ff3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/webapi.py
Expand Up @@ -168,7 +168,7 @@ class _NotFound(HTTPError):
message = "not found"
def __init__(self, message=None):
status = '404 Not Found'
headers = {'Content-Type': 'text/html'}
headers = {'Content-Type': 'text/html; charset=utf-8'}
HTTPError.__init__(self, status, headers, message or self.message)

def NotFound(message=None):
Expand Down

0 comments on commit f1d1ff3

Please sign in to comment.