Show More
@@ -17,6 +17,9 b' def launch(application):' | |||||
17 |
|
17 | |||
18 | environ = dict(os.environ.items()) |
|
18 | environ = dict(os.environ.items()) | |
19 | environ.setdefault('PATH_INFO', '') |
|
19 | environ.setdefault('PATH_INFO', '') | |
|
20 | if '.cgi' in environ['PATH_INFO']: | |||
|
21 | environ['PATH_INFO'] = environ['PATH_INFO'].split('.cgi', 1)[1] | |||
|
22 | ||||
20 | environ['wsgi.input'] = sys.stdin |
|
23 | environ['wsgi.input'] = sys.stdin | |
21 | environ['wsgi.errors'] = sys.stderr |
|
24 | environ['wsgi.errors'] = sys.stderr | |
22 | environ['wsgi.version'] = (1, 0) |
|
25 | environ['wsgi.version'] = (1, 0) |
General Comments 0
You need to be logged in to leave comments.
Login now