Skip to content

Commit

Permalink
Merge pull request #11 from nch-bowstave/token_authorization_fix
Browse files Browse the repository at this point in the history
Fixed token not being identified by MAPI endpoint
  • Loading branch information
mrz1836 authored Nov 11, 2020
2 parents 66ead90 + 77aea1f commit 46f9ccf
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 46f9ccf

Please sign in to comment.