added debug for path

This commit is contained in:
2023-03-20 23:14:36 +00:00
parent 9d520f7a6c
commit f884358784

View File

@@ -115,7 +115,7 @@ func webGatewayHandler(backend *core.Backend) func(w http.ResponseWriter, r *htt
pathA := strings.TrimPrefix(strings.TrimSuffix(r.URL.Path, "/"), "/")
pathParts := strings.Split(pathA, "/")
fmt.Println(pathParts)
fmt.Println(len(pathParts))
if len(pathParts) != 1 && len(pathParts) != 2 {
http.Error(w, "404 not found", http.StatusNotFound)
return