about summary refs log tree commit diff stats
path: root/src/utils/mimeguess.nim
Commit message (Collapse)AuthorAgeFilesLines
* dom: remove generic JS bindingsbptato2024-08-111-2/+1
| | | | Dispatch manually with fromJS instead.
* fix compilation on 2.0.8bptato2024-07-101-0/+1
|
* config: parse mime.types/mailcap/urimethodmap inside parseConfigbptato2024-03-181-1/+0
| | | | | | Better (and simpler) than storing them all over the place. extra: change lmDownload text to match w3m
* container: fall back to text/plain instead of application/octet-streambptato2024-03-161-2/+3
| | | | | | | | | | | | | This has its own problems, but application/octet-stream has the horrible consequence that opening any local file with an unrecognized type automatically quits the browser. (FWIW, w3m also falls back to text/plain, so it's not such an unreasonable default.) The proper solution would be to a) fix the bug that makes the browser auto-quit and b) show a "what to do" prompt for unrecognized file types (and allow users to override it, preferably on a per-protocol basis.)
* loader: remove applyHeadersbptato2024-03-121-11/+8
| | | | | | | Better compute the values we need on-demand at the call sites; this way, we can pass through content type attributes to mailcap too. (Also, remove a bug where applyResponse was called twice.)
* Use std/* imports everywherebptato2024-01-071-3/+3
|
* Add mailcap, mime.types & misc refactoringsbptato2023-08-131-0/+48
* add mailcap: works with copiousoutput, needsterminal, etc. * add mime.types (only works with mailcap) * refactor pipeBuffer * remove "dispatcher" * fix bug in directory display where baseurl would not be used