Skip to content

Commit 9a6ffcc

Browse files
committed
[fix] golint
1 parent 8a088c6 commit 9a6ffcc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

colly.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -305,11 +305,11 @@ func UserAgent(ua string) CollectorOption {
305305
// Header sets the custom headers used by the Collector.
306306
func Headers(headers map[string]string) CollectorOption {
307307
return func(c *Collector) {
308-
custom_headers := make(http.Header)
308+
customHeaders := make(http.Header)
309309
for header, value := range headers {
310-
custom_headers.Add(header, value)
310+
customHeaders.Add(header, value)
311311
}
312-
c.Headers = &custom_headers
312+
c.Headers = &customHeaders
313313
}
314314
}
315315

0 commit comments

Comments
 (0)