[web/headers] don't list a request header twice in "Vary"
authorJulien Cristau <julien.cristau@logilab.fr>
Tue, 29 Jul 2014 16:26:09 +0200
changeset 9936 5dbf45204109
parent 9935 d1adf549d5cb
child 9939 46a8ed48636f
[web/headers] don't list a request header twice in "Vary"
web/http_headers.py
--- a/web/http_headers.py	Mon Jul 28 17:22:49 2014 +0200
+++ b/web/http_headers.py	Tue Jul 29 16:26:09 2014 +0200
@@ -1561,7 +1561,7 @@
     'Server': (unique, str, singleHeader),
     'Set-Cookie': (generateSetCookie,),
     'Set-Cookie2': (generateSetCookie2,),
-    'Vary': (generateList, singleHeader),
+    'Vary': (set, generateList, singleHeader),
     'WWW-Authenticate': (generateWWWAuthenticate,)
 }