From 6d59993cb873185df881a0e30214302065c23491 Mon Sep 17 00:00:00 2001 From: zurikus Date: Tue, 18 Aug 2020 11:16:05 +0300 Subject: [PATCH] MINOR: stats: prevent favicon.ico requests for stats page Haproxy stats page don't have a favicon.ico, but browsers always makes a request for it. This lead to errors during stats page requests: Aug 18 08:46:41 somehost.example.net haproxy[1521534]: X.X.X.X:61403 [18/Aug/2020:08:46:41.437] stats stats/ -1/-1/-1/-1/0 503 222 - - SC-- 2/2/0/0/0 0/0 "GET /favicon.ico HTTP/1.1" Aug 18 08:46:42 somehost.example.net haproxy[1521534]: X.X.X.X:61403 [18/Aug/2020:08:46:42.650] stats stats/ -1/-1/-1/-1/0 503 222 - - SC-- 2/2/0/0/0 0/0 "GET /favicon.ico HTTP/1.1" Patch provided disables favicon.ico requests for haproxy stats page. --- src/stats.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/stats.c b/src/stats.c index 5248a6c..36aee99 100644 --- a/src/stats.c +++ b/src/stats.c @@ -2335,6 +2335,7 @@ static void stats_dump_html_head(struct appctx *appctx, struct uri_auth *uri) "\n" "Statistics Report for " PRODUCT_NAME "%s%s\n" + "\n" "\n" "