Use local generated env instead of os.environ
authorVincent Wagelaar <vincent@ricardis.tudelft.nl>
Tue, 30 Aug 2005 16:33:04 +0200
changeset 1162 91db1c90b20d
parent 1161 7654d8f2ccf6
child 1163 dacd3463ee3f
Use local generated env instead of os.environ
mercurial/hgweb.py
--- a/mercurial/hgweb.py	Tue Aug 30 16:25:46 2005 +0200
+++ b/mercurial/hgweb.py	Tue Aug 30 16:33:04 2005 +0200
@@ -908,11 +908,9 @@
                     accept = accept + line[7:].split(',')
             env['HTTP_ACCEPT'] = ','.join(accept)
 
-            os.environ.update(env)
-
             save = sys.argv, sys.stdin, sys.stdout, sys.stderr
             try:
-                req = hgrequest(self.rfile, self.wfile, os.environ)
+                req = hgrequest(self.rfile, self.wfile, env)
                 sys.argv = ["hgweb.py"]
                 if '=' not in query:
                     sys.argv.append(query)