summaryrefslogtreecommitdiff
path: root/Lib/CGIHTTPServer.py
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2003-07-14 06:56:32 +0000
committerRaymond Hettinger <python@rcn.com>2003-07-14 06:56:32 +0000
commit42b783888081cb6643e8fec5c34c9970ecea62ae (patch)
tree7a0afffabb587395d7fba399157589d8e4150481 /Lib/CGIHTTPServer.py
parent11b06854f5157d525eabf5ca74fa4db19414c774 (diff)
downloadcpython-42b783888081cb6643e8fec5c34c9970ecea62ae.tar.gz
SF bug #770601: CGIHTTPServer and environment variables (bug + solution)
(contributed by Vincent Delft.) The script updated os.environ but failed to pass the whole environment to the child process (the CGI script).
Diffstat (limited to 'Lib/CGIHTTPServer.py')
-rw-r--r--Lib/CGIHTTPServer.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/CGIHTTPServer.py b/Lib/CGIHTTPServer.py
index 437ee80fcc..7f481b7b3c 100644
--- a/Lib/CGIHTTPServer.py
+++ b/Lib/CGIHTTPServer.py
@@ -215,7 +215,7 @@ class CGIHTTPRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler):
pass
os.dup2(self.rfile.fileno(), 0)
os.dup2(self.wfile.fileno(), 1)
- os.execve(scriptfile, args, env)
+ os.execve(scriptfile, args, os.environ)
except:
self.server.handle_error(self.request, self.client_address)
os._exit(127)