hermes

HTTP GET/HEAD-only web server for static content.
git clone git://git.francescosaccone.com/hermes
Log | Files | Refs | README | LICENSE

commit 9b7b66462ac2d3425143b9bc1aa907573a38e46f
parent 778b1b127b18d1cc76d6cbafef02c402e8ef3938
Author: Francesco Saccone <francesco@francescosaccone.com>
Date:   Tue,  1 Apr 2025 11:54:30 +0200

fix: make extension and type not const in mime_types definition

Signed-off-by: Francesco Saccone <francesco@francescosaccone.com>

Diffstat:
Mfile.h | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/file.h b/file.h @@ -4,8 +4,8 @@ #include <stdlib.h> static const struct { - const char *extension; - const char *type; + char *extension; + char *type; } mime_types[] = { { "css", "text/css" }, { "gif", "image/gif" },