Fix crash on /pluginname path

This commit is contained in:
Valentin Lorentz 2022-11-01 18:32:07 +01:00
parent e1b2d8f26e
commit 7486ae271e

View File

@ -188,7 +188,7 @@ class SupyHTTPRequestHandler(BaseHTTPRequestHandler):
# WSGI-based callback
environ = WSGIRequestHandler.get_environ(self)
environ.update({
'PATH_INFO': '/' + environ['PATH_INFO'].split('/', 2)[2]
'PATH_INFO': '/' + (environ['PATH_INFO'].split('/', 2) + [''])[2]
})
SimpleHandler(
stdin=self.rfile, stdout=self.wfile, stderr=sys.stderr, environ=environ,