equal
deleted
inserted
replaced
22 |
22 |
23 def launch(application): |
23 def launch(application): |
24 procutil.setbinary(procutil.stdin) |
24 procutil.setbinary(procutil.stdin) |
25 procutil.setbinary(procutil.stdout) |
25 procutil.setbinary(procutil.stdout) |
26 |
26 |
27 environ = dict(os.environ.iteritems()) # re-exports |
27 environ = dict(pycompat.iteritems(os.environ)) # re-exports |
28 environ.setdefault(r'PATH_INFO', b'') |
28 environ.setdefault(r'PATH_INFO', b'') |
29 if environ.get(r'SERVER_SOFTWARE', r'').startswith(r'Microsoft-IIS'): |
29 if environ.get(r'SERVER_SOFTWARE', r'').startswith(r'Microsoft-IIS'): |
30 # IIS includes script_name in PATH_INFO |
30 # IIS includes script_name in PATH_INFO |
31 scriptname = environ[r'SCRIPT_NAME'] |
31 scriptname = environ[r'SCRIPT_NAME'] |
32 if environ[r'PATH_INFO'].startswith(scriptname): |
32 if environ[r'PATH_INFO'].startswith(scriptname): |