diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2006-02-20 04:36:17 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2006-02-20 04:36:17 +0000 |
| commit | f86004a4d3f642463a6faac72a72b61e975d9f29 (patch) | |
| tree | 7d7fe0065de2bb1608495c25c9e50073431bad71 /django/core/handlers/modpython.py | |
| parent | c72afb811b851aa382043051c50bfb7b4b31845a (diff) | |
Fixed #1376 -- Undid [2358], which broke flatpages. Thanks, Tom Tobin
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2364 bcc190cf-cafb-0310-a4f2-bffc1f526a37
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 |
