From e6bde4044a30c89ae9cf14af1db8e25dd32e5437 Mon Sep 17 00:00:00 2001 From: moisseev Date: Thu, 7 Mar 2024 21:28:03 +0300 Subject: [PATCH] [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"}, }; /* -- 2.39.5