webp favicon

main
Bob Mottram 2020-05-29 20:27:45 +01:00
parent 727c032059
commit de9972153a
2 changed files with 3 additions and 0 deletions

View File

@ -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

Binary file not shown.

After

Width:  |  Height:  |  Size: 864 B