Skip to content
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

Does not support HEAD requests #3

Open
juliangruber opened this issue Feb 18, 2025 · 2 comments
Open

Does not support HEAD requests #3

juliangruber opened this issue Feb 18, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@juliangruber
Copy link
Member

$ curl --head https://frisbii.fly.dev/ipfs/bafkreih25dih6ug3xtj73vswccw423b56ilrwmnos4cbwhrceudopdp5sq
HTTP/2 405
allow: GET
date: Tue, 18 Feb 2025 10:29:25 GMT
content-length: 18
content-type: text/plain; charset=utf-8
server: Fly/eb1a25638 (2025-02-13)
via: 2 fly.io
fly-request-id: 01JMC9NZ60R969853JYHB3EJXG-arn

Although ..

The Trustless Gateway Spec requires supporting HEAD requests.

.. as mentioned in CheckerNetwork/spark-checker#104

@juliangruber juliangruber added the bug Something isn't working label Feb 18, 2025
@juliangruber
Copy link
Member Author

Blocked by ipld/frisbii#170

@lidel
Copy link

lidel commented Feb 19, 2025

Once fixed, you may want to test with explicit content type: HEAD /ipfs/cid?format=raw + pass Accept: application/vnd.ipld.raw to ensure your requested trustless block responses and avoid issues if the other end supports deserialized responses as well.

There is a risk of false positive if deserialized response happens to fit in a single block, so choosing CID of a chunked data may be a good idea.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants