From: moisseev Date: Thu, 7 Mar 2024 18:28:03 +0000 (+0300) Subject: [Minor] Add HTTP_MAGIC_SVG key X-Git-Tag: 3.9.0~105^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e6bde4044a30c89ae9cf14af1db8e25dd32e5437;p=rspamd.git [Minor] Add HTTP_MAGIC_SVG key --- 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"}, }; /*