Don't set Content-Type to application/json in query without body
This commit is contained in:
1 parent
604569c7a3
commit
df96d322fc
1 file changed
+1
-1
@@ -9,5 +9,5 @@ import (
|
|||||||
// ListRoutes list the routes registered on the kapow! instance
|
// ListRoutes list the routes registered on the kapow! instance
|
||||||
func ListRoutes(host string, w io.Writer) error {
|
func ListRoutes(host string, w io.Writer) error {
|
||||||
url := host + "/routes/"
|
url := host + "/routes/"
|
||||||
return http.Get(url, "application/json", nil, w)
|
return http.Get(url, "", nil, w)
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user