diff options
Diffstat (limited to 'django/core/handlers/modpython.py')
| -rw-r--r-- | django/core/handlers/modpython.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/django/core/handlers/modpython.py b/django/core/handlers/modpython.py index aed8e140ba..eec35ff072 100644 --- a/django/core/handlers/modpython.py +++ b/django/core/handlers/modpython.py @@ -144,6 +144,10 @@ class ModPythonHandler(BaseHandler): finally: db.db.close() + # Apply response middleware + for middleware_method in self._response_middleware: + response = middleware_method(request, response) + # Convert our custom HttpResponse object back into the mod_python req. populate_apache_request(response, req) return 0 # mod_python.apache.OK |
