summaryrefslogtreecommitdiffstats
path: root/nova/api
diff options
context:
space:
mode:
authorBrian Lamar <brian.lamar@rackspace.com>2011-03-30 17:53:46 +0000
committerTarmac <>2011-03-30 17:53:46 +0000
commit79915a797e8485307d432ac9155d6e777b16dce7 (patch)
tree801ed58c9ea905442992c7cf873c51f5e2f6dcd0 /nova/api
parentf77c58ce317f9674671a1b44563ef3645533c815 (diff)
parentb1589b5f034db95b1d18910e27cae516258a4311 (diff)
OpenStack API faults have been changed to now return the appropriated Content-Type header.
Diffstat (limited to 'nova/api')
-rw-r--r--nova/api/openstack/faults.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/nova/api/openstack/faults.py b/nova/api/openstack/faults.py
index 0e9c4b26f..940bd8771 100644
--- a/nova/api/openstack/faults.py
+++ b/nova/api/openstack/faults.py
@@ -60,6 +60,7 @@ class Fault(webob.exc.HTTPException):
serializer = wsgi.Serializer(metadata)
content_type = req.best_match_content_type()
self.wrapped_exc.body = serializer.serialize(fault_data, content_type)
+ self.wrapped_exc.content_type = content_type
return self.wrapped_exc