Amolith opened
Don't send text/plain content-type for raw blob responses containing binaries
Timeline
Amolith commented
Probably use the mime package. We could detect by file extension, but is
there a more robust mechanism offered by the mime package? We should ensure
this functionality works for arbitrary file types, not just plaintext/binary.
Amolith commented
Immediately relevant files are
- pkg/web/templates/blob.html
- pkg/web/webui_blob.go
- pkg/web/webui.go
Amolith closed the bug