diff options
author | Soren Hansen <soren@linux2go.dk> | 2010-12-28 23:25:50 +0100 |
---|---|---|
committer | Soren Hansen <soren@linux2go.dk> | 2010-12-28 23:25:50 +0100 |
commit | 8ee15b6e93b5666b4645f2cefef357b0af3d26d0 (patch) | |
tree | ff2003b8117e8b503e4dae356d800733dc666c66 | |
parent | 675ca7c5f38af0fa1150936e881482aa20fdaa45 (diff) | |
download | nova-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.py | 2 |
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 |