Fix
This commit is contained in:
6
main.go
6
main.go
@@ -79,12 +79,12 @@ func Main() error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
req.Header.Add("brandId", brandID)
|
||||
req.Header.Add("Content-Type", "application/json")
|
||||
req.Header.Set("brandId", brandID)
|
||||
req.Header.Set("Content-Type", "application/json")
|
||||
if len(headers) > 0 {
|
||||
for _, pair := range strings.Split(headers, ",") {
|
||||
kv := strings.Split(pair, "=")
|
||||
req.Header.Add(kv[0], kv[1])
|
||||
req.Header.Set(kv[0], kv[1])
|
||||
}
|
||||
}
|
||||
if needJWT {
|
||||
|
||||
Reference in New Issue
Block a user