update example to user bearer token
This commit is contained in:
parent
059de101b4
commit
fdcfa4f13b
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue