Skip to content
This repository has been archived by the owner on Mar 25, 2022. It is now read-only.

Proxy redirects from IPFS gateway #149

Closed
wants to merge 1 commit into from
Closed

Conversation

grncdr
Copy link

@grncdr grncdr commented Jan 27, 2016

This fixes an issue where relative URLs inside an index.html are resolved incorrectly on gateway.ipfs.io

For reference, compare the behaviour of the same content when accessed with/without a trailing slash:

This fixes an issue where relative URLs inside an index.html are resolved incorrectly on gateway.ipfs.io
@jbenet jbenet added the backlog label Jan 27, 2016
@ghost
Copy link

ghost commented Jan 28, 2016

@grncdr thanks for looking into this - IPFS takes care of this on its own by redirecting to the trailing slash, if there is a link called index.html on the object. We run multireq in front of IPFS, which was following redirects :/ I had fixed this specific issue on Tuesday, but only partially. Last commit in whyrusleeping/multireq#1 fixes it finally.

Btw you can use https://ipfs.io instead of http://gateway.ipfs.io -- it'll soon redirect

@ghost
Copy link

ghost commented Jan 28, 2016

We run multireq in front of IPFS, which was following redirects

... which is why the redirect never made it to you :)

@ghost ghost closed this Jan 28, 2016
@jbenet jbenet removed the backlog label Jan 28, 2016
@ghost
Copy link

ghost commented Jan 28, 2016

This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants