From de9972153acc92f772ea5f671e1dbc732dbdf7f9 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 29 May 2020 20:27:45 +0100 Subject: [PATCH] webp favicon --- daemon.py | 3 +++ img/icons/favicon.webp | Bin 0 -> 864 bytes 2 files changed, 3 insertions(+) create mode 100644 img/icons/favicon.webp diff --git a/daemon.py b/daemon.py index 282076aa..2d4f4108 100644 --- a/daemon.py +++ b/daemon.py @@ -1108,6 +1108,9 @@ class PubServer(BaseHTTPRequestHandler): # favicon image if 'favicon.ico' in self.path: favFilename = 'favicon.ico' + if self.headers.get('Accept'): + if 'image/webp' in self.headers['Accept']: + favFilename = 'favicon.webp' # custom favicon faviconFilename = \ self.server.baseDir + '/' + favFilename diff --git a/img/icons/favicon.webp b/img/icons/favicon.webp new file mode 100644 index 0000000000000000000000000000000000000000..9c0a50d63e6b8ef6fb675500c62d1f84660cae54 GIT binary patch literal 864 zcmaKqQAkr!7{~v+wk+L9a)FJ6`!EYeLS?7~g>I$|W?YulwR&*(&TYc(b=+NHyMw|?H1A;y@E?eWF@waLW&yKd>t-c>^{MlFT#vkRKt!f zemNFx6$CHKUVHqQgNa36)U&3Ed!7_m(b`vb(c ziFa!BgT$|yE){s0amZk!D4W*hb5m_L()rLTmR7MG))dOwOF52!qSF4HSl|HTvy7EU zg8t1ItU^n#dh`gb4w~E00S`JMfQN(x`Vc`J^|Y#_#Nea2tAyWf_yuxF!?mW+qGsR)t`FJ=xb*pm!@S`1)WqR_! L!05utlvBhXY*f5e literal 0 HcmV?d00001