The API endpoint does not need the trailing "/".
authorOllivier Robert <roberto@keltia.net>
Mon, 10 Apr 2017 16:20:38 +0200
changeset 37 a0d3e7265cd2
parent 36 b3c341207b30
child 38 8343e5264a9b
The API endpoint does not need the trailing "/".
gondole.go
--- a/gondole.go	Mon Apr 10 16:20:02 2017 +0200
+++ b/gondole.go	Mon Apr 10 16:20:38 2017 +0200
@@ -20,7 +20,7 @@
 
 // prepareRequest insert all pre-defined stuff
 func (g *Gondole) prepareRequest(what string) (req rest.Request) {
-	endPoint := APIEndpoint + fmt.Sprintf("/%s/", what)
+	endPoint := APIEndpoint + fmt.Sprintf("/%s", what)
 
 	// Add at least one option, the APIkey if present
 	hdrs := make(map[string]string)