From d880512499bab86645c7597c285f123751203644 Mon Sep 17 00:00:00 2001 From: Ben Kraft Date: Mon, 5 Apr 2021 12:50:30 -0700 Subject: [PATCH] set content-type header --- graphql/client.go | 1 + 1 file changed, 1 insertion(+) diff --git a/graphql/client.go b/graphql/client.go index b236b3c..0f67fd4 100644 --- a/graphql/client.go +++ b/graphql/client.go @@ -99,6 +99,7 @@ func (c *client) MakeRequest(ctx context.Context, opName string, query string, r if err != nil { return err } + req.Header.Set("Content-Type", "application/json") if ctx != nil { req = req.WithContext(ctx)