mirror of
https://gitlab.com/bashrc2/epicyon
synced 2026-11-01 18:29:54 +00:00
webp favicon
This commit is contained in:
1 parent
727c032059
commit
de9972153a
2 files changed
+3
No files matched your search
@@ -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 |
Reference in new issue
Block a user