commit e6bde40: [Minor] Add HTTP_MAGIC_SVG key
moisseev
moiseev at mezonplus.ru
Mon Jul 29 17:53:43 UTC 2024
Author: moisseev
Date: 2024-03-07 21:28:03 +0300
URL: https://github.com/rspamd/rspamd/commit/e6bde4044a30c89ae9cf14af1db8e25dd32e5437 (refs/pull/4863/head)
[Minor] Add HTTP_MAGIC_SVG key
---
src/libserver/http/http_router.c | 5 +++--
1 file 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"},
};
/*
More information about the Commits
mailing list