This is an automated email from the ASF dual-hosted git repository. sebb pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-ponymail-foal.git
commit 7ecdb78e10b6e0f33a145a0d846d9d7e4151bc57 Author: Sebb <[email protected]> AuthorDate: Tue Dec 28 00:16:41 2021 +0000 handle URLs of the form /api/handler/extra?query This fixes #200 --- server/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/main.py b/server/main.py index 1a77a87..09fc483 100644 --- a/server/main.py +++ b/server/main.py @@ -119,7 +119,8 @@ class Server(plugins.server.BaseServer): # Figure out who is going to handle this request, if any # We are backwards compatible with the old Lua interface URLs body_type = "form" - handler = request.path.split("/")[-1] + # Support URLs of form /api/handler/extra?query + handler = request.path.split("/")[2] if handler.endswith(".lua"): body_type = "form" handler = handler[:-4]
