fix: lint

This commit is contained in:
kolaente 2021-11-16 20:37:37 +01:00
parent c3e0e6405a
commit 0b7762590f
Signed by untrusted user: konrad
GPG Key ID: F40E70337AB24C9B

View File

@ -36,11 +36,9 @@ 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)
}
} }
} }