summaryrefslogtreecommitdiffstats
path: root/nova/api
diff options
context:
space:
mode:
authorBrian Waldon <brian.waldon@rackspace.com>2011-03-30 15:06:46 +0000
committerTarmac <>2011-03-30 15:06:46 +0000
commiteaeaea0b5fb063124c04e05a30f9160890e8c4f9 (patch)
treee3a1599a0991af22c3ce690b7f4ab2140969b7c3 /nova/api
parent0e17f86bc315322d5221f2b6fec205bcb656c474 (diff)
parent343b969f7d790282b7b76bcb23b9d0d578d716b9 (diff)
Adding Content-Type code to openstack.api.versions.Versions wsgi.Application
Diffstat (limited to 'nova/api')
-rw-r--r--nova/api/openstack/versions.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/nova/api/openstack/versions.py b/nova/api/openstack/versions.py
index 33f1dd628..3f9d91934 100644
--- a/nova/api/openstack/versions.py
+++ b/nova/api/openstack/versions.py
@@ -15,8 +15,8 @@
# License for the specific language governing permissions and limitations
# under the License.
+import webob
import webob.dec
-import webob.exc
from nova import wsgi
import nova.api.openstack.views.versions
@@ -51,4 +51,10 @@ class Versions(wsgi.Application):
}
content_type = req.best_match_content_type()
- return wsgi.Serializer(metadata).serialize(response, content_type)
+ body = wsgi.Serializer(metadata).serialize(response, content_type)
+
+ response = webob.Response()
+ response.content_type = content_type
+ response.body = body
+
+ return response