diff --git a/lib/torrent2http/mimetypes.py b/lib/torrent2http/mimetypes.py index eff6135..94b548a 100644 --- a/lib/torrent2http/mimetypes.py +++ b/lib/torrent2http/mimetypes.py @@ -246,7 +246,7 @@ class MimeTypes: except EnvironmentError: break try: - ctype = ctype.encode(default_encoding) # omit in 3.x! + ctype = ctype#.encode(default_encoding) # omit in 3.x! except UnicodeEncodeError: pass else: