]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: stats: prevent favicon.ico requests for stats page
authorzurikus <sergioko@inbox.lv>
Tue, 18 Aug 2020 08:16:05 +0000 (11:16 +0300)
committerWilly Tarreau <w@1wt.eu>
Wed, 19 Aug 2020 09:29:57 +0000 (11:29 +0200)
commit6d59993cb873185df881a0e30214302065c23491
tree072584787eec85d0ef934541e1119f23f82ecc10
parenta1af38b74e99975d326baf52eb995629598c7213
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