Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Gateway content-type response header #224
I feel this requires clarification, as it may not be clear what is wrong on the first sight.
Sample SVG image at /ipfs/QmWBNMp6JxXj5aYrpef8z2xaPC7DeGftG4jTy6EyF958o4
The problem is that resource returned as
My guess is that go-ipfs probably uses standard mime-type sniffer from golang  which defaults to
It does not seem to work correctly now, but you may want to subscribe to related issues about mime-type in go-ipfs:
Indeed! If extension is
<img src="https://ipfs.io/ipfs/QmQ48wa7jc9JZJ9Lc1XCkuwa3FUYeXcMPJi3vAD78VbBM1/sample.svg" alt="if you see this text it means SVG image failed to load"/>
it IS returned as
referenced this issue
Feb 24, 2017
This issue has been moved to https://discuss.ipfs.io/t/gateway-content-type-response-header/357.