Skip to content

Commit

Permalink
retry redirect to AlreadyVisitedUrl will loop error
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinku-Chen committed Apr 8, 2024
1 parent 8e80593 commit 9180983
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions colly.go
Original file line number Diff line number Diff line change
Expand Up @@ -653,9 +653,6 @@ func (c *Collector) scrape(u, method string, depth int, requestData io.Reader, c
}
// note: once 1.13 is minimum supported Go version,
// replace this with http.NewRequestWithContext
if c.Context == nil {
c.Context = context.Background()
}
req = req.WithContext(context.WithValue(c.Context, CheckRevisitKey, checkRevisit))

if err := c.requestCheck(parsedURL, method, req.GetBody, depth, checkRevisit); err != nil {
Expand Down

0 comments on commit 9180983

Please sign in to comment.