# HG changeset patch # User Ollivier Robert # Date 1491514646 -7200 # Node ID dbc7755fbccae4a27d8e42c49831137e9b748901 # Parent 9414cadcb717b730835e31978e8dade42901a958 Add a tailored version of prepareRequest(). diff -r 9414cadcb717 -r dbc7755fbcca gondole.go --- a/gondole.go Thu Apr 06 23:36:00 2017 +0200 +++ b/gondole.go Thu Apr 06 23:37:26 2017 +0200 @@ -17,7 +17,6 @@ // prepareRequest insert all pre-defined stuff func (g *Gondole) prepareRequest(what string) (req rest.Request) { endPoint := APIEndpoint + fmt.Sprintf("/%s/", what) - key, ok := HasAPIKey() // Add at least one option, the APIkey if present hdrs := make(map[string]string) @@ -26,11 +25,6 @@ // Insert our sig hdrs["User-Agent"] = fmt.Sprintf("Gondole/%s", APIVersion) - // Insert key - if ok { - opts["key"] = key - } - req = rest.Request{ BaseURL: endPoint, Headers: hdrs,