Closed
Description
openedon Feb 5, 2024
Description
Reproduction
- Go to https://api.openverse.engineering/v1/images/cf168b67-00be-4e4c-8985-ccf388afecd5/thumb
- You should get a 415 error, the media type is not supported, with the following detail:
{"detail":"Unsupported media type \"Image extension png;charset=UTF-8 is not supported by the thumbnail proxy.\" in request."}
The image is a png, but extracting it from the head request is done incorrectly, and instead of png
we get png;charset=UTF-8
Additional context
openverse/api/api/utils/image_proxy/extension.py
Lines 77 to 83 in 8a939a4
Adding a .split(";")[0]
could probably fix this.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Metadata
Assignees
Labels
Type
Projects
Status
✅ Done