Skip to content

Commit

Permalink
attempting to match request w response in headless
Browse files Browse the repository at this point in the history
  • Loading branch information
Mzack9999 committed Mar 14, 2023
1 parent 81510fc commit c57c984
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/engine/hybrid/crawl.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ func (c *Crawler) navigateRequest(ctx context.Context, httpclient *retryablehttp
Headers: utils.FlattenHeaders(headers),
}

if request.URL == e.Request.URL {
response = &resp
}

// process the raw response
navigationRequests := parser.ParseResponse(resp)
c.enqueue(queue, navigationRequests...)
Expand Down

0 comments on commit c57c984

Please sign in to comment.