Skip to content

Commit

Permalink
Fixed token not being identified by MAPI endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
m.fletcher committed Nov 11, 2020
1 parent 79d2113 commit 77aea1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion request.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 77aea1f

Please sign in to comment.