diff --git a/request.go b/request.go index 1ab6d7d..1bee020 100644 --- a/request.go +++ b/request.go @@ -62,7 +62,7 @@ func httpRequest(ctx context.Context, client *Client, payload *httpPayload) (res // Set a token if supplied if len(payload.Token) > 0 { - request.Header.Set("token", payload.Token) + request.Header.Set("Authorization", payload.Token) } // Fire the http request