summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Williams <patrick@stwcx.xyz>2015-11-17 09:21:38 -0600
committerPatrick Williams <patrick@stwcx.xyz>2015-11-17 09:21:38 -0600
commitf481dfc6b059677d06c158a5e23cfffab56edc3f (patch)
tree776f197ca687aacc967ada9c7799ebb23509376a
parent275ec270684cd3b946674d02462bc9ed1890360e (diff)
parent9bfeec2186020e8266b1a4f25a0e53774dd70116 (diff)
downloadphosphor-rest-server-f481dfc6b059677d06c158a5e23cfffab56edc3f.tar.gz
phosphor-rest-server-f481dfc6b059677d06c158a5e23cfffab56edc3f.zip
Merge pull request #7 from bradbishop/errors
Set response type correctly for errors
-rw-r--r--obmc-rest2
1 files changed, 1 insertions, 1 deletions
diff --git a/obmc-rest b/obmc-rest
index f655599..017a736 100644
--- a/obmc-rest
+++ b/obmc-rest
@@ -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):
OpenPOWER on IntegriCloud