always patch_vary_headers on Host
This commit is contained in:
parent
89b6463998
commit
77ac20544a
1 changed files with 1 additions and 2 deletions
|
@ -41,8 +41,7 @@ class CMSMultiSiteMiddleware(object):
|
||||||
set_urlconf(None)
|
set_urlconf(None)
|
||||||
|
|
||||||
def process_response(self, request, response):
|
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 back to default urlconf
|
||||||
set_urlconf(None)
|
set_urlconf(None)
|
||||||
return response
|
return response
|
||||||
|
|
Loading…
Reference in a new issue