[Zope3-checkins] CVS: Zope3/src/zope/publisher - http.py:1.18
Marius Gedminas
mgedmin@codeworks.lt
Fri, 11 Apr 2003 08:38:31 -0400
Update of /cvs-repository/Zope3/src/zope/publisher
In directory cvs.zope.org:/tmp/cvs-serv23284/src/zope/publisher
Modified Files:
http.py
Log Message:
Fixed a bug with HTTP_ACCEPT_LANGUAGE in HTTPRequest (see the test for more
info).
=== Zope3/src/zope/publisher/http.py 1.17 => 1.18 ===
--- Zope3/src/zope/publisher/http.py:1.17 Fri Apr 11 06:01:23 2003
+++ Zope3/src/zope/publisher/http.py Fri Apr 11 08:38:00 2003
@@ -313,8 +313,8 @@
self.response.setCharsetUsingRequest(self)
langs = BrowserLanguages(self).getPreferredLanguages()
- language = country = variant = None
for httplang in langs:
+ language = country = variant = None
parts = httplang.split('-')
if parts:
language = parts.pop(0)