--- a/contrib/win32/hgwebdir_wsgi.py Thu Jul 18 12:03:29 2024 +0200
+++ b/contrib/win32/hgwebdir_wsgi.py Thu Jul 18 12:36:12 2024 +0200
@@ -101,6 +101,7 @@
import isapi_wsgi
from mercurial.hgweb.hgwebdir_mod import hgwebdir
+
# Example tweak: Replace isapi_wsgi's handler to provide better error message
# Other stuff could also be done here, like logging errors etc.
class WsgiHandler(isapi_wsgi.IsapiWsgiHandler):
@@ -114,7 +115,6 @@
def handler(environ, start_response):
-
# Translate IIS's weird URLs
url = environ['SCRIPT_NAME'] + environ['PATH_INFO']
paths = url[1:].split('/')[path_strip:]