diff options
| author | Brian Lamar <brian.lamar@rackspace.com> | 2011-03-30 17:53:46 +0000 |
|---|---|---|
| committer | Tarmac <> | 2011-03-30 17:53:46 +0000 |
| commit | 79915a797e8485307d432ac9155d6e777b16dce7 (patch) | |
| tree | 801ed58c9ea905442992c7cf873c51f5e2f6dcd0 /nova/api | |
| parent | f77c58ce317f9674671a1b44563ef3645533c815 (diff) | |
| parent | b1589b5f034db95b1d18910e27cae516258a4311 (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.py | 1 |
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 |
