The two functions give different responses, the only difference being the req.Header.Set("Accept", "*/*") line. I need the response that I get when the Accept isn't passed.
The good response: ["Ok",{"results":[{"url":"https://apps.apple.com/us/app/youtube-watch-listen-stream/id544007664","title":"YouTube: Watch, Liste....
The bad response: ["Ok",{"results":[{"url":"https://www.commonsensemedia.org/website-reviews/youtube","title":"YouTube Website Review | Co...
From
colly.go
:I need to send a request with no headers, but colly automatically inserts "Accept: */*" AFTER the OnRequest call. So I don't know how to affect it.
Example why I need to do this:
The two functions give different responses, the only difference being the
req.Header.Set("Accept", "*/*")
line. I need the response that I get when theAccept
isn't passed.The good response:
["Ok",{"results":[{"url":"https://apps.apple.com/us/app/youtube-watch-listen-stream/id544007664","title":"YouTube: Watch, Liste....
The bad response:["Ok",{"results":[{"url":"https://www.commonsensemedia.org/website-reviews/youtube","title":"YouTube Website Review | Co...