From f8843587849fbe87cd6215bccef8210cc534e543 Mon Sep 17 00:00:00 2001 From: Akilan Date: Mon, 20 Mar 2023 23:14:36 +0000 Subject: [PATCH] added debug for path --- Gateway.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gateway.go b/Gateway.go index 516472c..7a5eae7 100644 --- a/Gateway.go +++ b/Gateway.go @@ -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