Minor bugfixes, use semver-gen.

This commit is contained in:
2021-05-11 22:17:56 +01:00
parent 4508a46ac5
commit 91d55d1022
5 changed files with 42 additions and 14 deletions
+2 -2
View File
@@ -68,9 +68,9 @@ func Query(query string, variables interface{}, headers map[string]interface{})
defer fasthttp.ReleaseRequest(req)
req.Header.SetContentType("application/json")
for header, value := range headers {
req.Header.Set(fmt.Sprintf("%v", header), fmt.Sprintf("%v", value))
req.Header.Add(fmt.Sprintf("%v", header), fmt.Sprintf("%v", value))
}
req.Header.SetMethodBytes([]byte("POST"))
req.Header.SetMethod("POST")
req.SetBody(readyQuery)
req.SetRequestURI(GraphQLUrl)
res := fasthttp.AcquireResponse()