changeset 944:7c8e8d370740

use comma-separated Vary header items
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Mon, 17 Jul 2006 01:50:55 +0200
parents 274b021f26b1
children 41f6f7708466
files MoinMoin/request/__init__.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/request/__init__.py	Sun Jul 16 15:32:59 2006 +0200
+++ b/MoinMoin/request/__init__.py	Mon Jul 17 01:50:55 2006 +0200
@@ -1052,9 +1052,9 @@
             # * User-Agent (because a bot might be denied and get no content)
             # * Accept-Language (except if moin is told to ignore browser language)
             if self.cfg.language_ignore_browser:
-                self.setHttpHeader("Vary: Cookie User-Agent")
+                self.setHttpHeader("Vary: Cookie,User-Agent")
             else:
-                self.setHttpHeader("Vary: Cookie User-Agent Accept-Language")
+                self.setHttpHeader("Vary: Cookie,User-Agent,Accept-Language")
 
             # Handle request. We have these options:
             # 1. If user has a bad user name, delete its bad cookie and