mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 11:42:52 +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:
|
if file_path:
|
||||||
response = None
|
response = None
|
||||||
try:
|
try:
|
||||||
icon = open(file_path, 'r')
|
icon = open(file_path, 'rb')
|
||||||
response = icon.read()
|
response = icon.read()
|
||||||
except IOError:
|
except IOError:
|
||||||
pass
|
pass
|
||||||
|
Loading…
Reference in New Issue
Block a user