mirror of
https://github.com/progval/Limnoria.git
synced 2025-04-25 12:31:04 -05:00
Fix crash on /pluginname path
This commit is contained in:
parent
e1b2d8f26e
commit
7486ae271e
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user