mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-23 19:22:45 +01:00
httpserver: Open icon in binary mode.
This commit is contained in:
parent
048c1e77f4
commit
4d9a8a1408
@ -363,7 +363,7 @@ class Favicon(SupyHTTPServerCallback):
|
||||
if file_path:
|
||||
response = None
|
||||
try:
|
||||
icon = open(file_path, 'r')
|
||||
icon = open(file_path, 'rb')
|
||||
response = icon.read()
|
||||
except IOError:
|
||||
pass
|
||||
|
Loading…
Reference in New Issue
Block a user