aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/http/http_router.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libserver/http/http_router.c')
-rw-r--r--src/libserver/http/http_router.c4
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
+}