From 77ac20544a30ba65b63a6ea399e8203767bc4228 Mon Sep 17 00:00:00 2001 From: Stefan Foulis Date: Tue, 12 Jul 2016 11:20:32 +0200 Subject: [PATCH] always patch_vary_headers on Host --- djangocms_multisite/middleware.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/djangocms_multisite/middleware.py b/djangocms_multisite/middleware.py index 113f663..115f462 100644 --- a/djangocms_multisite/middleware.py +++ b/djangocms_multisite/middleware.py @@ -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