summaryrefslogtreecommitdiffstats
path: root/src/libserver/http
diff options
context:
space:
mode:
authormoisseev <moiseev@mezonplus.ru>2024-03-07 21:28:03 +0300
committermoisseev <moiseev@mezonplus.ru>2024-03-07 21:28:03 +0300
commite6bde4044a30c89ae9cf14af1db8e25dd32e5437 (patch)
treef7ed03b55d08e9e1fbf1722870327f801ab4565b /src/libserver/http
parenta7776b19ce9bcb71e8309b94bd108274e256aa95 (diff)
downloadrspamd-e6bde4044a30c89ae9cf14af1db8e25dd32e5437.tar.gz
rspamd-e6bde4044a30c89ae9cf14af1db8e25dd32e5437.zip
[Minor] Add HTTP_MAGIC_SVG key
Diffstat (limited to 'src/libserver/http')
-rw-r--r--src/libserver/http/http_router.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libserver/http/http_router.c b/src/libserver/http/http_router.c
index ad477f68f..1375bf69c 100644
--- a/src/libserver/http/http_router.c
+++ b/src/libserver/http/http_router.c
@@ -30,7 +30,8 @@ enum http_magic_type {
HTTP_MAGIC_JS,
HTTP_MAGIC_ICO,
HTTP_MAGIC_PNG,
- HTTP_MAGIC_JPG
+ HTTP_MAGIC_JPG,
+ HTTP_MAGIC_SVG
};
static const struct _rspamd_http_magic {
@@ -44,7 +45,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"},
+ [HTTP_MAGIC_SVG] = {"svg", "image/svg+xml"},
};
/*