Skip to content

Commit

Permalink
err check (#773)
Browse files Browse the repository at this point in the history
  • Loading branch information
dogancanbakir committed Feb 24, 2024
1 parent 4d93b2a commit 9c462b8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/engine/hybrid/crawl.go
Expand Up @@ -47,7 +47,10 @@ func (c *Crawler) navigateRequest(s *common.CrawlSession, request *navigation.Re

xhrRequests := []navigation.Request{}
go pageRouter.Start(func(e *proto.FetchRequestPaused) error {
URL, _ := urlutil.Parse(e.Request.URL)
URL, err := urlutil.Parse(e.Request.URL)
if err != nil {
return errorutil.NewWithTag("hybrid", "could not parse URL").Wrap(err)
}
body, _ := FetchGetResponseBody(page, e)
headers := make(map[string][]string)
for _, h := range e.ResponseHeaders {
Expand Down

0 comments on commit 9c462b8

Please sign in to comment.