##// END OF EJS Templates
Merge with crew-stable
Patrick Mezard -
r10202:dcaa8029 merge default
parent child Browse files
Show More
@@ -17,8 +17,11 b' def launch(application):'
17
17
18 environ = dict(os.environ.iteritems())
18 environ = dict(os.environ.iteritems())
19 environ.setdefault('PATH_INFO', '')
19 environ.setdefault('PATH_INFO', '')
20 if '.cgi' in environ['PATH_INFO']:
20 if environ.get('SERVER_SOFTWARE', '').startswith('Microsoft-IIS'):
21 environ['PATH_INFO'] = environ['PATH_INFO'].split('.cgi', 1)[1]
21 # IIS includes script_name in path_info
22 scriptname = environ['SCRIPT_NAME']
23 if environ['PATH_INFO'].startswith(scriptname):
24 environ['PATH_INFO'] = environ['PATH_INFO'][len(scriptname):]
22
25
23 environ['wsgi.input'] = sys.stdin
26 environ['wsgi.input'] = sys.stdin
24 environ['wsgi.errors'] = sys.stderr
27 environ['wsgi.errors'] = sys.stderr
General Comments 0
You need to be logged in to leave comments. Login now