# HG changeset patch # User Mikael Berthe # Date 1492014504 -7200 # Node ID 1b4653f07bfcf961f7eb8b89d5c4a0018b304427 # Parent ae6efea0207ff8f054c30127bf4e51f16fd8daeb Fix Bearer diff -r ae6efea0207f -r 1b4653f07bfc gondole.go --- a/gondole.go Wed Apr 12 18:27:34 2017 +0200 +++ b/gondole.go Wed Apr 12 18:28:24 2017 +0200 @@ -34,7 +34,9 @@ // Insert our sig hdrs["User-Agent"] = fmt.Sprintf("Gondole/%s", GondoleVersion) - hdrs["Authorization"] = fmt.Sprintf("Bearer %s", g.Secret) + if g.userToken != nil { + hdrs["Authorization"] = fmt.Sprintf("Bearer %s", g.userToken.Access_token) + } req = rest.Request{ BaseURL: endPoint,