Age | Commit message (Collapse) | Author | |
---|---|---|---|
2023-06-24 | copyright years++ | Omar Polo | |
2023-06-09 | don't have the config being a global | Omar Polo | |
2023-06-06 | switch to the more usual log.c | Omar Polo | |
2023-06-06 | rename log.[ch] to logger.[ch] | Omar Polo | |
2023-06-05 | provide a more usual fatal | Omar Polo | |
fatal usually appends the error string. Add 'fatalx' that doesn't. Fix callers and move the prototypes to log.h | |||
2022-09-10 | retire the deprecated `mime' and `map' config options | Omar Polo | |
2022-09-10 | make the mime types fixed-sized too | Omar Polo | |
2022-07-04 | copyright years | Omar Polo | |
2022-04-08 | hardcode the mapping text/gemini -> .gmi/.gemini | Omar Polo | |
It's still possible to override this automatic mapping by just adding an entry like application/octet-stream gemini gmi in the `types' block. | |||
2022-04-08 | sort the MIME mappings and do a binary search to match | Omar Polo | |
2022-04-08 | allow add_mime to fail | Omar Polo | |
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. | |||
2022-03-19 | const-ify some tables | Omar Polo | |
matches found with % grep -R '=[ ]*{' . | fgrep -v const | |||
2021-04-22 | missing comma , | Omar Polo | |
2021-04-21 | use `text/x-patch' for .patch and .diff files | Omar Polo | |
2021-02-12 | fix various compilation errors | Omar Polo | |
Include gmid.h as first header in every file, as it then includes config.h (that defines _GNU_SOURCE for instance). Fix also a warning about unsigned vs signed const char pointers in openssl. | |||
2021-01-24 | added support for location blocks | Omar Polo | |
2021-01-21 | use recallocarray | Omar Polo | |
it also does an overflow check on multiplication, other than being more readable. | |||
2021-01-21 | rename mimes to mime ; pass config esplicitly to mime* functions | Omar Polo | |
2021-01-19 | moving "default type" from global options to server options | Omar Polo | |
2021-01-18 | move mimes into the struct config | Omar Polo | |
2021-01-18 | add "mime" and "default type" option for the configuration | Omar Polo | |
2021-01-18 | improve mime handling | Omar Polo | |
we still have an hardcoded list, but this implements the API needed to modify the mappings. |