From 52e0bcbc62c4df5d488b18f6a8e2cba798ec0807 Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Sat, 30 Oct 2010 07:19:04 +0000 Subject: Fixed #14588 -- Corrected r14393 to ensure that response middlewares are are always applied. Includes a battery of tests to validate the expected behavior of the middleware cycle. Thanks to Petr Marhoun for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14398 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/test/client.py | 5 ----- 1 file changed, 5 deletions(-) (limited to 'django/test') diff --git a/django/test/client.py b/django/test/client.py index 1baf6176ed..4f09726900 100644 --- a/django/test/client.py +++ b/django/test/client.py @@ -81,11 +81,6 @@ class ClientHandler(BaseHandler): # admin views. request._dont_enforce_csrf_checks = not self.enforce_csrf_checks 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.disconnect(close_connection) signals.request_finished.send(sender=self.__class__) -- cgit v1.3