set content-type header

This commit is contained in:
Ben Kraft
2021-04-05 12:50:30 -07:00
parent 77804e3475
commit d880512499
+1
View File
@@ -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)