diff --git a/urihandler/handler.py b/urihandler/handler.py index 70a7d58..d4634db 100644 --- a/urihandler/handler.py +++ b/urihandler/handler.py @@ -24,7 +24,7 @@ def __init__(self, uris=[]): def handle(self, uri, request): params = "" if "?" in uri: - uri, params = uri.rsplit("?", 1) + uri, params = uri.split("?", 1) uris = copy.deepcopy(self.uris) for u in uris: if "mount" not in u or u["mount"]: