From 7324ffd4c54fef9e5363d1a8a3432ac51d2fbf29 Mon Sep 17 00:00:00 2001 From: Sascha Peilicke Date: Mon, 10 Dec 2012 19:20:26 +0100 Subject: [PATCH] wsgi.Middleware forward-compatibility with webob 1.2b1 or later Response.request is None by default (http://docs.webob.org/en/latest/news.html#b1), but is used in the CacheFilter WSGI middleware. Fixes bug 1045179 Change-Id: I28f5ca92fe517f4f56af934799db32650e079ba7 --- glance/common/wsgi.py | 1 + 1 file changed, 1 insertion(+) diff --git a/glance/common/wsgi.py b/glance/common/wsgi.py index 66b5645f19..101f8d38ba 100644 --- a/glance/common/wsgi.py +++ b/glance/common/wsgi.py @@ -329,6 +329,7 @@ class Middleware(object): if response: return response response = req.get_response(self.application) + response.request = req return self.process_response(response)