fix: lint
This commit is contained in:
parent
c3e0e6405a
commit
0b7762590f
1 changed files with 3 additions and 5 deletions
|
@ -36,13 +36,11 @@ func DownloadFileWithHeaders(url string, headers http.Header) (buf *bytes.Buffer
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
if headers != nil {
|
|
||||||
for key, h := range headers {
|
for key, h := range headers {
|
||||||
for _, hh := range h {
|
for _, hh := range h {
|
||||||
req.Header.Add(key, hh)
|
req.Header.Add(key, hh)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
hc := http.Client{}
|
hc := http.Client{}
|
||||||
resp, err := hc.Do(req)
|
resp, err := hc.Do(req)
|
||||||
|
|
Loading…
Reference in a new issue