|
|
@@ -456,6 +456,11 @@ class Server(object): |
|
|
|
app_config.update({ 'tools.json_in.force': False, |
|
|
|
'tools.json_in.processor': json_to_request_params }) |
|
|
|
|
|
|
|
# Convert Unicode strings to raw bytes on output |
|
|
|
app_config.update({ 'tools.encode.text_only': True, |
|
|
|
'tools.encode.on': True, |
|
|
|
'tools.encode.encoding': 'utf-8' }) |
|
|
|
|
|
|
|
# Send tracebacks in error responses. They're hidden by the |
|
|
|
# error_page function for client errors (code 400-499). |
|
|
|
app_config.update({ 'request.show_tracebacks' : True }) |
|
|
|