#281: /raw/{id} returns empty body for non-image attachment pastes (Fix attempt 1) #286

Merged
fen merged 1 commits from fix-281 into dev 2026-09-18 01:33:45 +00:00
1 Commits
Author SHA1 Message Date
fen 8901a3c82c #281: /raw streams attachment blob for all attachment mimes
CI / docker (pull_request) Skipped
CI / test (pull_request) Successful in 25s
handleRaw only streamed the blob behind an isImageMime gate (#221), so
non-image attachment pastes fell through to empty row.Content and /raw
served 0 bytes. Serve the blob for every attachment mime, passing the
sniffed mime through serveContentType so active-content types (html,
svg, xml) still serve as text/plain per the #34 rule. Regression tests
cover text and html attachments (size, Content-Type, byte equality).
2026-09-17 20:31:57 -05:00