serve

serve.git
git clone git://git.lenczewski.org/serve.git
Log | Files | Refs

commit b638d66e068fe677e065a39f4bc3639ab7438c09
parent 843d775d11db3c8819cac0542999f3db47ac9ad7
Author: MikoĊ‚aj Lenczewski <mblenczewski@gmail.com>
Date:   Fri,  7 Feb 2025 17:37:57 +0000

Fix image/svg to image/svg+xml

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

diff --git a/website/website.h b/website/website.h @@ -536,7 +536,7 @@ content_type_str(enum content_type type) case IMAGE_GIF: return "image/gif"; case IMAGE_JPEG: return "image/jpeg"; case IMAGE_PNG: return "image/png"; - case IMAGE_SVG: return "image/svg"; + case IMAGE_SVG: return "image/svg+xml"; case TEXT_PLAIN: return "text/plain"; case TEXT_HTML: return "text/html"; @@ -581,7 +581,7 @@ content_type_from_mime(char *mime) if (strcmp(mime, "image/png") == 0) return IMAGE_PNG; - if (strcmp(mime, "image/svg") == 0) + if (strcmp(mime, "image/svg+xml") == 0) return IMAGE_SVG; if (strcmp(mime, "text/plain") == 0)