-
Notifications
You must be signed in to change notification settings - Fork 324
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
/etc/mime.types impacts Content-Type returned by Gateway #886
Comments
Opening the url http://blog.ipfs.io.ipns.localhost:8080/2020-05-20-gossipsub-v1.1 with Firefox(78.0a1) or Chromium (83.0.4103.61) without IPFS Companion installed downloads the page too, so that could be unrelated to redirection. My local IPFS daemon (0.6.0-dev/53739faee) seems to be responding with |
I suspected this is unexpected side-effect of recent change in go-ipfs: $ docker run --rm -it --net=host ipfs/go-ipfs:master-2020-05-25-707b550
...
Daemon is ready local gateway returns $ curl -sD - http://blog.ipfs.io.ipns.localhost:8080/2020-05-20-gossipsub-v1.1 | grep -i content-type
Content-Type: text/html @RubenKelevra @sinkuu I assume you both run bleeding edge – are you able to update to the latest |
Upgraded to ipfs/kubo@707b550, still the same. This behavior may be system dependent (I'm using ArchLinux), because On ArchLinux (https://www.archlinux.org/packages/extra/any/mailcap/):
On Ubuntu (https://packages.ubuntu.com/focal/mime-support):
|
Thank you @sinkuu, I was able to reproduce by updating
This confirms its go-ipfs issue, unrelated to ipfs-companion. @Stebalien @hsanjuan @gowthamgts I am unsure if this is a bug or a feature introduced in ipfs/kubo#7262 / ipfs/kubo#7252, but this type of OS-dependent / nondeterministic behavior feels like a bug to me. Perhaps we should disable use of OS-level |
I agree that disabling OS level mime type checking is a good solution. Note: Ultimately, the problem was that we weren't generating posts as |
I've filed ipfs/kubo#7418 to summarize this issue. |
Thank you! This issue was originally filled about inability to open http://blog.ipfs.io.ipns.localhost:8080/2020-05-20-gossipsub-v1.1 and that bug was fixed by https://github.com/ipfs/blog/issues/423 (I am no longer able to replicate), so I am closing this as fixed. Impact of |
Describe the bug
I tried to open one of the most recent blogposts on the ipfs blog which was redirected to my local gateway by my ipfs browser plugin. My browser then started to download the HTML file, instead of rendering it.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Rendering of webpage
Screenshot
Desktop (please complete the following information):
1.8.96 Chromium: 81.0.4044.138 (Official Build) unknown (64-bit)
2.11.0
The text was updated successfully, but these errors were encountered: