w3link's cache didn't handle accept: application/vnd.ipld.raw
correctly
#18
Labels
kind/bug
A bug in existing code (including security flaws)
need/triage
Needs initial labeling and prioritization
Hi, I'm the maintainer of OpenDAL: A rust lib for accessing data freely, painlessly, and efficiently. OpenDAL added ipfs support recently. During our test, we found that w3link didn't cache the correct data if the
accept
header is set.For example:
QmPpCt1aYGb9JWJRmXRUnmJtVgeFFTJGzWFYEEX7bo9zGJ
is a directory of opendal's test data: https://ipfs.io/ipfs/QmPpCt1aYGb9JWJRmXRUnmJtVgeFFTJGzWFYEEX7bo9zGJaccept: application/vnd.ipld.raw
: gateway should return the generated DirIndex.accept: application/vnd.ipld.raw
: gateway should return the raw block.However, w3s.link returns raw block even I didn't set
accept
header:Shell Log
The text was updated successfully, but these errors were encountered: