Skip to content

Commit 44f2f11

Browse files
author
Alexander Smishlajev
committed
propagate CGI_SHOW_TIMING from os.environ to request environment
1 parent 049c675 commit 44f2f11

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

roundup/scripts/roundup_server.py

Lines changed: 3 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.73 2004-11-02 10:02:05 a1s Exp $
20+
$Id: roundup_server.py,v 1.74 2004-11-22 07:11:30 a1s Exp $
2121
"""
2222
__docformat__ = 'restructuredtext'
2323

@@ -213,6 +213,8 @@ def inner_run_cgi(self):
213213
env['SERVER_NAME'] = self.server.server_name
214214
env['SERVER_PORT'] = str(self.server.server_port)
215215
env['HTTP_HOST'] = self.headers['host']
216+
if os.environ.has_key('CGI_SHOW_TIMING'):
217+
env['CGI_SHOW_TIMING'] = os.environ['CGI_SHOW_TIMING']
216218

217219
# do the roundup thing
218220
tracker = self.get_tracker(tracker_name)

0 commit comments

Comments
 (0)