always patch_vary_headers on Host

This commit is contained in:
Stefan Foulis 2016-07-12 11:20:32 +02:00
parent 89b6463998
commit 77ac20544a

View file

@ -41,8 +41,7 @@ class CMSMultiSiteMiddleware(object):
set_urlconf(None)
def process_response(self, request, response):
if getattr(request, 'urlconf', None):
patch_vary_headers(response, ('Host',))
patch_vary_headers(response, ('Host',))
# set back to default urlconf
set_urlconf(None)
return response