Images corrupted when proxied #2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This happens on both Gunicorn and Hypercorn, so it isn't a WSGI/ASGI problem.
The mimetype is still image/png and the
PNG
header still exists in the file.Commit 9d50847f97 fixed this issue.
Because it's using
latin-1
ifUTF-8
fails, it sees the PNG without errors and decides to try parsing.So now when the mimetype isn't
text/gemini
, it will use the raw binary instead of the decoded data. (that is re-coded into UTF-8)