From 8d0e21057261a51cfd28da96217f523600f38f3b Mon Sep 17 00:00:00 2001 From: Lan Tian Date: Mon, 11 Jan 2021 22:24:15 +0800 Subject: [PATCH] Fix #7 --- frontend/webserver.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/webserver.go b/frontend/webserver.go index cb585b1..23d977a 100644 --- a/frontend/webserver.go +++ b/frontend/webserver.go @@ -38,7 +38,7 @@ func webBackendCommunicator(endpoint string, command string) func(w http.Respons } return func(w http.ResponseWriter, r *http.Request) { - split := strings.SplitN(r.URL.Path[1:], "/", 4) + split := strings.SplitN(r.URL.Path[1:], "/", 3) var urlCommands string if len(split) >= 3 { urlCommands = split[2]