Skip to content

Commit

Permalink
charset in content type
Browse files Browse the repository at this point in the history
  • Loading branch information
pylover committed Nov 14, 2016
1 parent 498b2bf commit 9e6faaa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nanohttp.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import ujson


__version__ = '0.1.0-dev.25'
__version__ = '0.1.0-dev.26'

DEFAULT_CONFIG_FILE = 'nanohttp.yml'
DEFAULT_ADDRESS = '8080'
Expand Down Expand Up @@ -366,8 +366,8 @@ def load_app(self):
return self._handle_request

def _handle_exception(self, ex):
context.response_encoding = 'utf-8'
context.response_content_type = 'text/plain'
context.response_encoding = 'utf8'
if isinstance(ex, HttpStatus):
return ex.status, ex.render()
else:
Expand Down

0 comments on commit 9e6faaa

Please sign in to comment.