Skip to content

Commit

Permalink
use request to construct a new one
Browse files Browse the repository at this point in the history
  • Loading branch information
dogancanbakir committed Jun 5, 2024
1 parent 917d72e commit 73b9cc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/engine/hybrid/crawl.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func (c *Crawler) navigateRequest(s *common.CrawlSession, request *navigation.Re
} else {
statucCodeText = http.StatusText(statusCode)
}
httpreq, err := http.NewRequest(e.Request.Method, URL.String(), strings.NewReader(e.Request.PostData))
httpreq, err := http.NewRequest(request.Method, URL.String(), strings.NewReader(request.Body))
if err != nil {
return errorutil.NewWithTag("hybrid", "could not new request").Wrap(err)
}
Expand Down

0 comments on commit 73b9cc8

Please sign in to comment.