From: moisseev Date: Sun, 9 Oct 2022 07:44:23 +0000 (+0300) Subject: [Fix] Fix favicon.ico Content-Type header X-Git-Tag: 3.4~64^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=3afe8f2ee43e592832960456aff71c4853e8bb30;p=rspamd.git [Fix] Fix favicon.ico Content-Type header Issue: #4301 --- diff --git a/src/libserver/http/http_router.c b/src/libserver/http/http_router.c index 9ff1195ad..ae8a0329f 100644 --- a/src/libserver/http/http_router.c +++ b/src/libserver/http/http_router.c @@ -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 +}