##// END OF EJS Templates
hgweb: support broken IIS 5 behavior with .cgi in PATH_INFO
Dirkjan Ochtman -
r7406:ee8af8a4 default
parent child Browse files
Show More
@@ -17,6 +17,9 b' def launch(application):'
17 17
18 18 environ = dict(os.environ.items())
19 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 23 environ['wsgi.input'] = sys.stdin
21 24 environ['wsgi.errors'] = sys.stderr
22 25 environ['wsgi.version'] = (1, 0)
General Comments 0
You need to be logged in to leave comments. Login now