Skip to content

Commit

Permalink
[fix] golint
Browse files Browse the repository at this point in the history
  • Loading branch information
asciimoo committed Jul 6, 2022
1 parent 8a088c6 commit 9a6ffcc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions colly.go
Original file line number Diff line number Diff line change
Expand Up @@ -305,11 +305,11 @@ func UserAgent(ua string) CollectorOption {
// Header sets the custom headers used by the Collector.
func Headers(headers map[string]string) CollectorOption {
return func(c *Collector) {
custom_headers := make(http.Header)
customHeaders := make(http.Header)
for header, value := range headers {
custom_headers.Add(header, value)
customHeaders.Add(header, value)
}
c.Headers = &custom_headers
c.Headers = &customHeaders
}
}

Expand Down

0 comments on commit 9a6ffcc

Please sign in to comment.