summaryrefslogtreecommitdiff
path: root/django/core/handlers/modpython.py
diff options
context:
space:
mode:
authorRussell Keith-Magee <russell@keith-magee.com>2010-10-29 07:43:56 +0000
committerRussell Keith-Magee <russell@keith-magee.com>2010-10-29 07:43:56 +0000
commit3086b55b0e96b82a7f5f7a5c488f97ff5ed76420 (patch)
tree7d806f0c56f008b9edd7b4973d8db5faade3482d /django/core/handlers/modpython.py
parentc38a174f7c3d2dc5a1adab746ca44f0afd0d966c (diff)
Fixed #14523 -- Modified response handling so that exceptions raised by process_response() in a middleware are caught and handled like any other exception. Thanks to Ivan Sagalaev for the report and patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@14393 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/core/handlers/modpython.py')
-rw-r--r--django/core/handlers/modpython.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/django/core/handlers/modpython.py b/django/core/handlers/modpython.py
index 5afc61296f..0128f1abe8 100644
--- a/django/core/handlers/modpython.py
+++ b/django/core/handlers/modpython.py
@@ -215,11 +215,6 @@ class ModPythonHandler(BaseHandler):
response = http.HttpResponseBadRequest()
else:
response = self.get_response(request)
-
- # Apply response middleware
- for middleware_method in self._response_middleware:
- response = middleware_method(request, response)
- response = self.apply_response_fixes(request, response)
finally:
signals.request_finished.send(sender=self.__class__)