Skip to content

CID bafkqaaa causes error: cannot detect content-type: EOF #8230

@lidel

Description

@lidel

Originally reported by Brave: brave/brave-browser#16671

go-ipfs 0.9.0 updated mimetype dep https://github.com/gabriel-vasile/mimetype and that introduced regression on gateway when an empty byte array payload is returned to the user.

Unfortunately, that edge case changes HTTP response for CID bafkqaaa which we use in various places.

  • In v0.8.0 it was empty body with HTTP 200 (ok) status code
  • In v0.9.0 it returns cannot detect content-type: EOF with HTTP 500 error

TODO

Metadata

Metadata

Labels

P0Critical: Tackled by core team ASAPeffort/hoursEstimated to take one or several hourskind/bugA bug in existing code (including security flaws)status/in-progressIn progresstopic/gatewayTopic gateway

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions