Commits
Commit:
cd5826b8ba3b43ed9802309688ae029c0f5c4081
Author:
Omar Polo <op@omarpolo.com>
Date:
Sat Sep 10 09:43:57 2022 UTC
retire the deprecated `mime' and `map' config options
Commit:
aa9543b9fd1963d86f63fda13addb356f9039c37
Author:
Omar Polo <op@omarpolo.com>
Date:
Sat Sep 10 09:40:05 2022 UTC
make the mime types fixed-sized too
Commit:
a555e0d67baef271ffe4a186326ee5f1c16fff75
Author:
Omar Polo <op@omarpolo.com>
Date:
Mon Jul 4 09:48:39 2022 UTC
copyright years
Commit:
8fb0df4d79c26e54d57fd0d4e35bc1ae2954de20
Author:
Omar Polo <op@omarpolo.com>
Date:
Fri Apr 8 15:25:50 2022 UTC
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
Author:
Omar Polo <op@omarpolo.com>
Date:
Fri Apr 8 15:14:09 2022 UTC
sort the MIME mappings and do a binary search to match
Commit:
d8d170aa5ee1498babee095078b3888f1525a2b3
Author:
Omar Polo <op@omarpolo.com>
Date:
Fri Apr 8 13:44:49 2022 UTC
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
Author:
Omar Polo <op@omarpolo.com>
Date:
Sat Mar 19 11:02:42 2022 UTC
const-ify some tables

matches found with

% grep -R '=[ ]*{' . | fgrep -v const
Commit:
0bfdcb1799c05c1db08fa7843b8b590e41464582
Author:
Omar Polo <op@omarpolo.com>
Date:
Thu Apr 22 19:10:08 2021 UTC
missing comma ,
Commit:
4d820b6cd266d6e81b38e25e0850f8990abef32e
Author:
Omar Polo <op@omarpolo.com>
Date:
Wed Apr 21 07:51:29 2021 UTC
use `text/x-patch' for .patch and .diff files
Commit:
52418c8d828bc25e0e84cc25d5e349a84be0b397
Author:
Omar Polo <op@omarpolo.com>
Date:
Fri Feb 12 12:47:20 2021 UTC
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
Author:
Omar Polo <op@omarpolo.com>
Date:
Sun Jan 24 14:11:40 2021 UTC
added support for location blocks
Commit:
95210bb3961727e034b99912a65700f6ace49753
Author:
Omar Polo <op@omarpolo.com>
Date:
Thu Jan 21 16:14:01 2021 UTC
use recallocarray

it also does an overflow check on multiplication, other than being
more readable.
Commit:
b2a6b6137186dd3fce21640150926a133a35c2c8
Author:
Omar Polo <op@omarpolo.com>
Date:
Thu Jan 21 15:01:37 2021 UTC
rename mimes to mime ; pass config esplicitly to mime* functions
Commit:
6119e13e8aa794988b3875614a0a2c3ce0f07e7b
Author:
Omar Polo <op@omarpolo.com>
Date:
Tue Jan 19 11:28:41 2021 UTC
moving "default type" from global options to server options
Commit:
a010b0ddc5aa8cf49207b0ab87d36be6ebb320cf
Author:
Omar Polo <op@omarpolo.com>
Date:
Mon Jan 18 18:48:37 2021 UTC
move mimes into the struct config
Omar Polo