diff options
author | moisseev <moiseev@mezonplus.ru> | 2022-10-09 10:44:23 +0300 |
---|---|---|
committer | moisseev <moiseev@mezonplus.ru> | 2022-10-09 10:44:23 +0300 |
commit | 3afe8f2ee43e592832960456aff71c4853e8bb30 (patch) | |
tree | 8f50b3192bdd8565bbec82757b219765cf614d2a /src/libserver/http | |
parent | 90b0edae421d31c12cbc8c29fa294f7732bb4f21 (diff) | |
download | rspamd-3afe8f2ee43e592832960456aff71c4853e8bb30.tar.gz rspamd-3afe8f2ee43e592832960456aff71c4853e8bb30.zip |
[Fix] Fix favicon.ico Content-Type header
Issue: #4301
Diffstat (limited to 'src/libserver/http')
-rw-r--r-- | src/libserver/http/http_router.c | 4 |
1 files changed, 3 insertions, 1 deletions
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 +} |