From d6df3a9366434430dec2f848da372312878c20ee Mon Sep 17 00:00:00 2001 From: Zachary Scott Date: Thu, 31 May 2018 10:29:59 +0900 Subject: [PATCH] Set authorization header to send along token --- cmd/diagnostic.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/diagnostic.go b/cmd/diagnostic.go index 747616de4..5df93551b 100644 --- a/cmd/diagnostic.go +++ b/cmd/diagnostic.go @@ -47,6 +47,7 @@ func diagnostic(cmd *cobra.Command, args []string) { }` req := graphql.NewRequest(query) + req.Header.Set("Authorization", viper.GetString("token")) ctx := context.Background() var resp map[string]interface{}