Commits


revise changelog


hardcode the mapping text/gemini -> .gmi/.gemini It's still possible to override this automatic mapping by just adding an entry like application/octet-stream gemini gmi in the `types' block.


sync


sort the MIME mappings and do a binary search to match


tweaks


rework the 'running gmid as a daemon' example a bit


document the `types' behavior


add an entry for text/gemini in the `types' example if using `types' the internal listing is not used, so show how to add the entries for text/gemini when using /usr/share/misc/mime.types.


fix test_include_mime after `types' change


don't load the built-in list when using `types'


wrong email...


sync


allow add_mime to fail add_mime nows allocate dinamically copies of the passed strings, so that we can actually free what we parse from the config file. This matters a lot especially with lengthy `types' block: strings that reach the internal mapping are never free'd, so every manual addition is leaked.


+jpeg


master is now 1.8.3-current