]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Fix favicon.ico Content-Type header 4302/head
authormoisseev <moiseev@mezonplus.ru>
Sun, 9 Oct 2022 07:44:23 +0000 (10:44 +0300)
committermoisseev <moiseev@mezonplus.ru>
Sun, 9 Oct 2022 07:44:23 +0000 (10:44 +0300)
Issue: #4301

src/libserver/http/http_router.c

index 9ff1195ade2a032b42c8934579bde87bcff1f0ab..ae8a0329f94aeafa7fcd65ebd1f4e3206fc73b9a 100644 (file)
@@ -28,6 +28,7 @@ enum http_magic_type {
        HTTP_MAGIC_HTML,
        HTTP_MAGIC_CSS,
        HTTP_MAGIC_JS,
+       HTTP_MAGIC_ICO,
        HTTP_MAGIC_PNG,
        HTTP_MAGIC_JPG
 };
@@ -40,6 +41,7 @@ static const struct _rspamd_http_magic {
                [HTTP_MAGIC_HTML] = { "html", "text/html" },
                [HTTP_MAGIC_CSS] = { "css", "text/css" },
                [HTTP_MAGIC_JS] = { "js", "application/javascript" },
+               [HTTP_MAGIC_PNG] = { "png", "image/x-icon" },
                [HTTP_MAGIC_PNG] = { "png", "image/png" },
                [HTTP_MAGIC_JPG] = { "jpg", "image/jpeg" },
 };
@@ -561,4 +563,4 @@ rspamd_http_router_free (struct rspamd_http_connection_router *router)
                g_hash_table_unref (router->response_headers);
                g_free (router);
        }
-}
\ No newline at end of file
+}