Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sourceforge does a lot of redirects to the final download destination and the Golang HTTP client doesn't seem to handle this very well out of the box. We can fix this by stripping the Referer header from all HTTP requests following the redirects. I wasn't able to make this work with adding this to the grab httpclient (probably something I needed to do with the request body) but that's easily worked around by just doing a HEAD request in the first place and following redirects until we get to the final download URL which we can pass to grab. Signed-off-by: Reilly Brogan <[email protected]>
- Loading branch information