stash/src
NotAShelf 9afbe9ceca
watch: deprioritize text/html in MIME negotiation
Firefox and Electron apps offer `text/html` first when copying images,
which causes stash to store the HTML wrapper (`<img src="...">`) instead
of the actual image data, which is what we want. We handicap, i.e.,
deprioritize `text/html` in the "any" preference mode and prefer
`image/*` types first, then any non-html type. 

This sounds a little illogical, but in user will almost always prefer
the image itself rather than the text representation. So it's intuitive.

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I6bd5969344893e15226c27071442475f6a6a6964
2026-02-01 14:55:31 +03:00
..
commands watch: deprioritize text/html in MIME negotiation 2026-02-01 14:55:31 +03:00
db db: add an in-memory test helper 2026-02-01 11:55:17 +03:00
multicall multicall: auto-select MIME type more intelligently when not specified 2025-12-23 10:11:28 +03:00
wayland db: rewrite migration with transactional schema versioning 2026-01-22 13:41:58 +03:00
main.rs mime: refactor mime detection to separate module; streamline 2026-01-23 23:13:01 +03:00
mime.rs mime: expand test coverage 2026-02-01 11:55:02 +03:00