colly icon indicating copy to clipboard operation
colly copied to clipboard

Fix Bug: retry scrape will lost POST requestData

Open Shinku-Chen opened this issue 8 months ago • 0 comments

when retry scrape requestData will loss in http.NewRequest

so Seek requestData before scrape.NewRequest

req.ContentLength  always 0 and

if req.GetBody != nil && req.ContentLength == 0 {
			req.Body = NoBody
			req.GetBody = func() (io.ReadCloser, error) { return NoBody, nil }
		}

Shinku-Chen avatar Nov 29 '23 17:11 Shinku-Chen