I get the hash almost right away, but it looks like js-ipfs is adding that HTML page to IPFS, not the ISO. I'm confused by this, because I thought that js-ipfs was supposed to follow redirects. If I wget that same URL, it 302 Redirects to a mirror. Help?
The text was updated successfully, but these errors were encountered:
Visiting that URL in a browser returns a 200 and a HTML page, so there's probably some header that wget is sending that's causing isoredirect.centos.org to redirect. Either that or isoredirect.centos.org is doing some user agent sniffing. If it's the former then I'd appreciate a PR to fix it but if it's the latter then there's not anything we can do about it (since User-Agent is a restricted header in the browser that we can't change).
Aha. Further investigation: If I request "http://isoredirect.centos.org/centos/7/isos/x86_64/CentOS-7-x86_64-Minimal-1810.iso" with the user agent "Wget/", sure enough, I get redirected. I guess they're doing some sniffing. ¯\(ツ)/¯
leoherzog commentedJul 30, 2019
Hello!
I'm running this in NodeJS:
I get the hash almost right away, but it looks like js-ipfs is adding that HTML page to IPFS, not the ISO. I'm confused by this, because I thought that js-ipfs was supposed to follow redirects. If I
wgetthat same URL, it302 Redirects to a mirror. Help?The text was updated successfully, but these errors were encountered: