diff options
author | Brad Bishop <bradleyb@us.ibm.com> | 2015-11-17 09:14:50 -0500 |
---|---|---|
committer | Brad Bishop <bradleyb@us.ibm.com> | 2015-11-17 09:14:50 -0500 |
commit | 9bfeec2186020e8266b1a4f25a0e53774dd70116 (patch) | |
tree | 776f197ca687aacc967ada9c7799ebb23509376a | |
parent | 275ec270684cd3b946674d02462bc9ed1890360e (diff) | |
download | phosphor-rest-server-9bfeec2186020e8266b1a4f25a0e53774dd70116.tar.gz phosphor-rest-server-9bfeec2186020e8266b1a4f25a0e53774dd70116.zip |
Set response type correctly for errors
Error response type was 'text/html' but should be
'application/json'
-rw-r--r-- | obmc-rest | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -509,7 +509,7 @@ class JsonApiErrorsPlugin(object): response_object['data']['traceback'] = error.traceback.splitlines() json_response = json.dumps(response_object, **self.json_opts) - res.content_type = 'application/json' + response.content_type = 'application/json' return json_response class RestApp(Bottle): |