From d31165c82fbd9f9daaef4725137ee3fc39af35da Mon Sep 17 00:00:00 2001 From: pancho horrillo Date: Sun, 20 Oct 2019 18:20:46 +0200 Subject: [PATCH] Drop trailing slash in URL to query routes This one slipped through the tests, I think because the automagic handling of trailing slashes by the net/http muxer. With it, the command: $ kapow route list fails with a 'Not Found'. --- internal/client/route_list.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/client/route_list.go b/internal/client/route_list.go index bd08260..4bcc3a3 100644 --- a/internal/client/route_list.go +++ b/internal/client/route_list.go @@ -8,6 +8,6 @@ import ( // ListRoutes queries the kapow! instance for the routes that are registered func ListRoutes(host string, w io.Writer) error { - url := host + "/routes/" + url := host + "/routes" return http.Get(url, "", nil, w) }