-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(gateway)!: no duplicate payload during subdomain redirects #326
Conversation
This comment was marked as off-topic.
This comment was marked as off-topic.
@hacdias Yes, this is expected -- these tests are there to ensure we don't change this silently until we are ready. I think we are ready, we should stop doing this and remove it from conformance, don't want others to reimplement this hack.
|
0a177e9
to
7cd8aee
Compare
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lgtm, thank you for cleaning this up! ❤️
I'm merging and bubbling up to ipfs/kubo#9913
This is based on top of #315 since that PR also has to deal with this.
Right now we send the content body on requests that include redirection. This decision was made a long time ago to ensure that tools, such as
curl
andwget
would be able to fetch onlocalhost
and not be redirected to subdomains that may not work with them. However, considering the published gateway standards we have, this may be a legacy thing we can clean up.Unfortunately, we have sharness and conformance tests that check for the body on redirection requests. Those will need to be updated in order for this to work.
cc @lidel