Django 1.10: apply_response_fixes was removed.

Ref: https://code.djangoproject.com/ticket/26052?cversion=0&cnum_hist=2
This commit is contained in:
Umair Khan
2016-11-14 15:27:59 +05:00
committed by Tim Abbott
parent 3d3800314f
commit 9b0f9bf326

View File

@@ -354,7 +354,8 @@ class AsyncDjangoHandler(tornado.web.RequestHandler, base.BaseHandler):
# Apply response middleware, regardless of the response
for middleware_method in self._response_middleware:
response = middleware_method(request, response)
response = self.apply_response_fixes(request, response)
if hasattr(self, 'apply_response_fixes'):
response = self.apply_response_fixes(request, response)
except: # Any exception should be gathered and handled
signals.got_request_exception.send(sender=self.__class__, request=request)
response = self.handle_uncaught_exception(request, resolver, sys.exc_info())