From df96d322fcb0a30872f7743c5ee31ddeea536b57 Mon Sep 17 00:00:00 2001 From: pancho horrillo Date: Thu, 3 Oct 2019 22:47:43 +0200 Subject: [PATCH] Don't set Content-Type to application/json in query without body --- 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 629966b..422afd1 100644 --- a/internal/client/route_list.go +++ b/internal/client/route_list.go @@ -9,5 +9,5 @@ import ( // ListRoutes list the routes registered on the kapow! instance func ListRoutes(host string, w io.Writer) error { url := host + "/routes/" - return http.Get(url, "application/json", nil, w) + return http.Get(url, "", nil, w) }