Commit b0f48999 authored by Alexander Kruppa's avatar Alexander Kruppa

Call create_env() with path under which upload.py was registered, or translation fails

parent ab38d183
......@@ -367,7 +367,7 @@ class MyHandler(http.server.CGIHTTPRequestHandler):
# environment variables to be set according to the CGI
# specificaton, such as CONTENT_LENGTH.
# This is really slow if rbufsize == 0.
env = self.create_env("upload.py")
env = self.create_env("cgi-bin/upload.py")
upload.do_upload(self.dbfilename, self.uploaddir,
inputfp=self.rfile, output=self.wfile, environ=env)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment