Skip to content

Commit

Permalink
Set authorization header to send along token
Browse files Browse the repository at this point in the history
  • Loading branch information
Zachary Scott committed May 31, 2018
1 parent 6383dc6 commit d6df3a9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/diagnostic.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{}
Expand Down

0 comments on commit d6df3a9

Please sign in to comment.