Commits
- Commit:
a555e0d67baef271ffe4a186326ee5f1c16fff75
- From:
- Omar Polo <op@omarpolo.com>
- Date:
copyright years
- Commit:
8fb0df4d79c26e54d57fd0d4e35bc1ae2954de20
- From:
- Omar Polo <op@omarpolo.com>
- Date:
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.
- Commit:
18bd83915eab0f06b7e2920d0d71a39108b2d641
- From:
- Omar Polo <op@omarpolo.com>
- Date:
sort the MIME mappings and do a binary search to match
- Commit:
d8d170aa5ee1498babee095078b3888f1525a2b3
- From:
- Omar Polo <op@omarpolo.com>
- Date:
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.
- Commit:
e5d82d9472513ef742dbb0b5ac451337625feb58
- From:
- Omar Polo <op@omarpolo.com>
- Date:
const-ify some tables
matches found with
% grep -R '=[ ]*{' . | fgrep -v const
- Commit:
0bfdcb1799c05c1db08fa7843b8b590e41464582
- From:
- Omar Polo <op@omarpolo.com>
- Date:
missing comma ,
- Commit:
4d820b6cd266d6e81b38e25e0850f8990abef32e
- From:
- Omar Polo <op@omarpolo.com>
- Date:
use `text/x-patch' for .patch and .diff files
- Commit:
52418c8d828bc25e0e84cc25d5e349a84be0b397
- From:
- Omar Polo <op@omarpolo.com>
- Date:
fix various compilation errors
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.
- Commit:
c8b74339185123feebb6164b91f500f1930e45ff
- From:
- Omar Polo <op@omarpolo.com>
- Date:
added support for location blocks
- Commit:
95210bb3961727e034b99912a65700f6ace49753
- From:
- Omar Polo <op@omarpolo.com>
- Date:
use recallocarray
it also does an overflow check on multiplication, other than being
more readable.
- Commit:
b2a6b6137186dd3fce21640150926a133a35c2c8
- From:
- Omar Polo <op@omarpolo.com>
- Date:
rename mimes to mime ; pass config esplicitly to mime* functions
- Commit:
6119e13e8aa794988b3875614a0a2c3ce0f07e7b
- From:
- Omar Polo <op@omarpolo.com>
- Date:
moving "default type" from global options to server options
- Commit:
a010b0ddc5aa8cf49207b0ab87d36be6ebb320cf
- From:
- Omar Polo <op@omarpolo.com>
- Date:
move mimes into the struct config
- Commit:
982069a120a3d36483427ce00b9cf90a8bf4daab
- From:
- Omar Polo <op@omarpolo.com>
- Date:
add "mime" and "default type" option for the configuration
- Commit:
0fbe79b33c1d16b0611851e2019558ce8888a02e
- From:
- Omar Polo <op@omarpolo.com>
- Date:
improve mime handling
we still have an hardcoded list, but this implements the API needed to
modify the mappings.