Compare commits

..
1 Commits
Author SHA1 Message Date
lukaszraczylo a107ee953b Force the string value for the header setting. 2023-12-13 09:18:26 +00:00
+5 -1
View File
@@ -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