httpserver: Open icon in binary mode.

This commit is contained in:
Valentin Lorentz 2014-04-02 17:34:04 +00:00
parent 048c1e77f4
commit 4d9a8a1408

View File

@ -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