# HG changeset patch # User Alexander Smishlajev # Date 1139742023 0 # Node ID ea471747d5aafdf9e78117ee98a66eeb80033d89 # Parent 878dc6cf6690c83c07dbd65c0e792e556791bc3e fix failure with browsers not sending "Accept-Language" header [SF#1429646] diff -r 878dc6cf6690 -r ea471747d5aa roundup/cgi/client.py --- a/roundup/cgi/client.py Fri Feb 10 03:48:44 2006 +0000 +++ b/roundup/cgi/client.py Sun Feb 12 11:00:23 2006 +0000 @@ -1,4 +1,4 @@ -# $Id: client.py,v 1.222 2006-02-09 23:53:11 richard Exp $ +# $Id: client.py,v 1.223 2006-02-12 11:00:23 a1s Exp $ """WWW request handler (also used in the stand-alone server). """ @@ -411,7 +411,7 @@ elif self.cookie.has_key("roundup_language"): language = self.cookie["roundup_language"].value elif self.instance.config["WEB_USE_BROWSER_LANGUAGE"]: - hal = self.env['HTTP_ACCEPT_LANGUAGE'] + hal = self.env.get('HTTP_ACCEPT_LANGUAGE') language = accept_language.parse(hal) else: language = ""