Skip to content

Commit 08a390f

Browse files
committed
[fix] use valid url in default user-agent
1 parent 1ce3469 commit 08a390f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

colly.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ func CacheExpiration(d time.Duration) CollectorOption {
487487
// Init initializes the Collector's private variables and sets default
488488
// configuration for the Collector
489489
func (c *Collector) Init() {
490-
c.UserAgent = "colly - https://github.com/gocolly/colly/v2"
490+
c.UserAgent = "colly - https://github.com/gocolly/colly"
491491
c.Headers = nil
492492
c.MaxDepth = 0
493493
c.MaxRequests = 0

0 commit comments

Comments
 (0)