favicon.ico thx triptolemus

This commit is contained in:
Max 2021-04-01 15:11:12 -04:00
parent ccc0001872
commit aec5a8012c
2 changed files with 2 additions and 2 deletions

View File

@ -58,8 +58,8 @@ def ensure_str(s): # for python 2/3
return ns
def static_file(environ, start_response):
content_types = { 'png': 'image/png', 'jpeg': 'image/jpeg', 'jpg': 'image/jpeg', 'gif': 'image/gif', 'css': 'text/css', 'js': 'application/javascript', 'html': 'text/html'}
img_types = 'png jpg jpeg gif'.split()
content_types = { 'png': 'image/png', 'jpeg': 'image/jpeg', 'jpg': 'image/jpeg', 'gif': 'image/gif', 'css': 'text/css', 'js': 'application/javascript', 'html': 'text/html', 'ico': 'image/vnd.microsoft.icon'}
img_types = 'png jpg jpeg gif ico'.split()
if environ['PATH_INFO'] == '/':
filename = 'index.html'
else:

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB