mirror of
https://github.com/lukaszraczylo/go-simple-graphql.git
synced 2026-10-13 00:48:37 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a107ee953b
|
+5
-1
@@ -18,7 +18,11 @@ func (qe *QueryExecutor) executeQuery() ([]byte, error) {
|
||||
}
|
||||
|
||||
for key, value := range qe.Headers {
|
||||
httpRequest.Header.Set(key, value.(string))
|
||||
strValue, ok := value.(string)
|
||||
if !ok {
|
||||
strValue = fmt.Sprintf("%v", value)
|
||||
}
|
||||
httpRequest.Header.Set(key, strValue)
|
||||
}
|
||||
|
||||
var retries_max int
|
||||
|
||||
Reference in New Issue
Block a user