update example to user bearer token

This commit is contained in:
Ted Unangst 2019-12-13 18:08:30 -05:00
parent 059de101b4
commit fdcfa4f13b
1 changed files with 1 additions and 1 deletions

View File

@ -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)