]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Add HTTP_MAGIC_SVG key 4863/head
authormoisseev <moiseev@mezonplus.ru>
Thu, 7 Mar 2024 18:28:03 +0000 (21:28 +0300)
committermoisseev <moiseev@mezonplus.ru>
Thu, 7 Mar 2024 18:28:03 +0000 (21:28 +0300)
src/libserver/http/http_router.c

index ad477f68fa41a46f160215f7d4ad9c758d05417a..1375bf69c5c147360e0a9b737ee891b509d6b973 100644 (file)
@@ -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"},
 };
 
 /*