From fdcfa4f13bee94b2a64b6f1c1c9ac2659ef4996a Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Fri, 13 Dec 2019 18:08:30 -0500 Subject: [PATCH] update example to user bearer token --- toys/youvegothonks.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toys/youvegothonks.go b/toys/youvegothonks.go index 94cb9eb..aa02ae9 100644 --- a/toys/youvegothonks.go +++ b/toys/youvegothonks.go @@ -33,7 +33,7 @@ func gethonks(server, token string, wanted int) HonkSet { if err != nil { log.Fatal(err) } - req.Header.Add("Authorization", token) + req.Header.Add("Authorization", "Bearer " + token) resp, err := http.DefaultClient.Do(req) if err != nil { log.Fatal(err)