summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSoren Hansen <soren@linux2go.dk>2010-12-28 23:25:50 +0100
committerSoren Hansen <soren@linux2go.dk>2010-12-28 23:25:50 +0100
commit8ee15b6e93b5666b4645f2cefef357b0af3d26d0 (patch)
treeff2003b8117e8b503e4dae356d800733dc666c66
parent675ca7c5f38af0fa1150936e881482aa20fdaa45 (diff)
downloadnova-8ee15b6e93b5666b4645f2cefef357b0af3d26d0.tar.gz
nova-8ee15b6e93b5666b4645f2cefef357b0af3d26d0.tar.xz
nova-8ee15b6e93b5666b4645f2cefef357b0af3d26d0.zip
Address bug #695157 by using a blank request class and setting an empty request path.
-rw-r--r--nova/wsgi.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/wsgi.py b/nova/wsgi.py
index c7ee9ed14..b5d6b96c1 100644
--- a/nova/wsgi.py
+++ b/nova/wsgi.py
@@ -270,7 +270,7 @@ class Serializer(object):
needed to serialize a dictionary to that type.
"""
self.metadata = metadata or {}
- req = webob.Request(environ)
+ req = webob.Request.blank('', environ)
suffix = req.path_info.split('.')[-1].lower()
if suffix == 'json':
self.handler = self._to_json