mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-11 12:42:34 +01:00
Prevent crash of httpserver in some requests. (Why? No idea.)
This commit is contained in:
parent
cac96aa5f7
commit
5209cbc402
@ -216,7 +216,7 @@ class SupyHTTPRequestHandler(BaseHTTPRequestHandler):
|
||||
# We call doX, because this is more supybotic than do_X.
|
||||
path = self.path
|
||||
if not callback.fullpath:
|
||||
path = '/' + path.split('/', 2)[2]
|
||||
path = '/' + path.split('/', 2)[-1]
|
||||
getattr(callback, callbackMethod)(self, path,
|
||||
*args, **kwargs)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user