summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--module/network/HTTPChunk.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/module/network/HTTPChunk.py b/module/network/HTTPChunk.py
index 07012d072..f66121880 100644
--- a/module/network/HTTPChunk.py
+++ b/module/network/HTTPChunk.py
@@ -180,8 +180,7 @@ class HTTPChunk(HTTPRequest):
#ignore BOM, it confuses unrar
if not self.BOMChecked:
- byte = bytearray(buf[:3])
- if tuple(byte) == (239,187,191):
+ if [ord(b) for b in buf[:3]] == [239,187,191]:
buf = buf[3:]
self.BOMChecked = True