Skip to content

Commit 2f74a62

Browse files
author
Alexander Smishlajev
committed
set HTTP_ACCEPT_LANGUAGE in CGI environment (patch [SF#1360321])
1 parent 4381ee4 commit 2f74a62

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

roundup/scripts/roundup_server.py

Lines changed: 2 additions & 1 deletion
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.79 2005-04-13 06:12:12 richard Exp $
20+
$Id: roundup_server.py,v 1.80 2005-12-03 09:37:24 a1s Exp $
2121
"""
2222
__docformat__ = 'restructuredtext'
2323

@@ -230,6 +230,7 @@ def inner_run_cgi(self):
230230
env['HTTP_HOST'] = self.headers['host']
231231
if os.environ.has_key('CGI_SHOW_TIMING'):
232232
env['CGI_SHOW_TIMING'] = os.environ['CGI_SHOW_TIMING']
233+
env['HTTP_ACCEPT_LANGUAGE'] = self.headers['accept-language']
233234

234235
# do the roundup thing
235236
tracker = self.get_tracker(tracker_name)

0 commit comments

Comments
 (0)