diff MoinMoin/i18n/__init__.py @ 15:5a2a8201bb6f

make moin friendlier to proxies, thanks to ASF imported from: moin--main--1.5--patch-16
author Thomas Waldmann <tw@waldmann-edv.de>
date Fri, 23 Sep 2005 20:02:07 +0000
parents 77665d8e2254
children f1e33f7ad2e6
line wrap: on
line diff
--- a/MoinMoin/i18n/__init__.py	Fri Sep 23 19:27:45 2005 +0000
+++ b/MoinMoin/i18n/__init__.py	Fri Sep 23 20:02:07 2005 +0000
@@ -199,6 +199,8 @@
     available = wikiLanguages()
     for lang in browserLanguages(request):
         if available.has_key(lang):
+            if request.http_accept_language:
+                request.setHttpHeader('Vary: Accept-Language')
             return lang
     
     # Or return the wiki default language...