forked from indymedia/epicyon
webp favicon
parent
727c032059
commit
de9972153a
|
@ -1108,6 +1108,9 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
# favicon image
|
# favicon image
|
||||||
if 'favicon.ico' in self.path:
|
if 'favicon.ico' in self.path:
|
||||||
favFilename = 'favicon.ico'
|
favFilename = 'favicon.ico'
|
||||||
|
if self.headers.get('Accept'):
|
||||||
|
if 'image/webp' in self.headers['Accept']:
|
||||||
|
favFilename = 'favicon.webp'
|
||||||
# custom favicon
|
# custom favicon
|
||||||
faviconFilename = \
|
faviconFilename = \
|
||||||
self.server.baseDir + '/' + favFilename
|
self.server.baseDir + '/' + favFilename
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 864 B |
Loading…
Reference in New Issue