forked from indymedia/epicyon
webp favicon
parent
727c032059
commit
de9972153a
|
@ -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 |
Loading…
Reference in New Issue