commit 1ef13a2: [Minor] Serve SVG with the correct CT
moisseev
moiseev at mezonplus.ru
Mon Jul 29 17:53:38 UTC 2024
Author: moisseev
Date: 2024-03-07 15:29:46 +0300
URL: https://github.com/rspamd/rspamd/commit/1ef13a2419d3c3169ed1a29d10ea587506909c2c (refs/pull/4861/head)
[Minor] Serve SVG with the correct CT
---
src/libserver/http/http_router.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/libserver/http/http_router.c b/src/libserver/http/http_router.c
index 2fdfe48aa..ad477f68f 100644
--- a/src/libserver/http/http_router.c
+++ b/src/libserver/http/http_router.c
@@ -44,6 +44,7 @@ static const struct _rspamd_http_magic {
[HTTP_MAGIC_ICO] = {"ico", "image/x-icon"},
[HTTP_MAGIC_PNG] = {"png", "image/png"},
[HTTP_MAGIC_JPG] = {"jpg", "image/jpeg"},
+ [HTTP_MAGIC_JPG] = {"svg", "image/svg+xml"},
};
/*
More information about the Commits
mailing list