From: zurikus Date: Tue, 18 Aug 2020 08:16:05 +0000 (+0300) Subject: MINOR: stats: prevent favicon.ico requests for stats page X-Git-Tag: v2.3-dev4~82 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6d59993cb873185df881a0e30214302065c23491;p=thirdparty%2Fhaproxy.git 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. --- diff --git a/src/stats.c b/src/stats.c index 5248a6c2f9..36aee99f9a 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" "