Skip to content

Commit 0bef93d

Browse files
author
Alexander Smishlajev
committed
fix failure with browsers not sending "Accept-Language" header [SF#1435335]
1 parent 93fb835 commit 0bef93d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

roundup/scripts/roundup_server.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
"""Command-line script that runs a server over roundup.cgi.client.
1919
20-
$Id: roundup_server.py,v 1.81 2005-12-25 14:52:33 a1s Exp $
20+
$Id: roundup_server.py,v 1.82 2006-02-22 05:40:56 a1s Exp $
2121
"""
2222
__docformat__ = 'restructuredtext'
2323

@@ -259,7 +259,7 @@ def inner_run_cgi(self):
259259
env['HTTP_HOST'] = self.headers['host']
260260
if os.environ.has_key('CGI_SHOW_TIMING'):
261261
env['CGI_SHOW_TIMING'] = os.environ['CGI_SHOW_TIMING']
262-
env['HTTP_ACCEPT_LANGUAGE'] = self.headers['accept-language']
262+
env['HTTP_ACCEPT_LANGUAGE'] = self.headers.get('accept-language')
263263

264264
# do the roundup thing
265265
tracker = self.get_tracker(tracker_name)

0 commit comments

Comments
 (0)