gr
This commit is contained in:
5
main.go
5
main.go
@@ -62,7 +62,10 @@ func main() {
|
|||||||
switch strings.ToLower(k) {
|
switch strings.ToLower(k) {
|
||||||
case "content-length":
|
case "content-length":
|
||||||
default:
|
default:
|
||||||
req.Header.Set(k, v)
|
req.Header.Set(k, v[0])
|
||||||
|
for _, v := range req.Header[1:] {
|
||||||
|
req.Header.Add(k, v)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
resp, err := c.Do(req)
|
resp, err := c.Do(req)
|
||||||
|
|||||||
Reference in New Issue
Block a user