From 77aea1ffb999ea8308be023667779812e59b3e27 Mon Sep 17 00:00:00 2001 From: "m.fletcher" Date: Wed, 11 Nov 2020 14:28:17 +0000 Subject: [PATCH] Fixed token not being identified by MAPI endpoint --- request.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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