|
@ -63,7 +63,7 @@ func PostJson(url string, param []byte, header ...map[string]string) ([]byte, er |
|
|
if len(header) > 0 { |
|
|
if len(header) > 0 { |
|
|
for _, item := range header { |
|
|
for _, item := range header { |
|
|
for k, v := range item { |
|
|
for k, v := range item { |
|
|
req.Header.Set(k, v) |
|
|
|
|
|
|
|
|
req.Header[k] = []string{v} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|