summaryrefslogtreecommitdiffstats
path: root/module/network/HTTPChunk.py
diff options
context:
space:
mode:
authorGravatar Robin Obůrka <r.oburka@gmail.com> 2016-09-03 00:10:12 +0200
committerGravatar Robin Obůrka <r.oburka@gmail.com> 2016-09-03 00:10:12 +0200
commita5c25955128c2e7d77182001bc5c6b0391811e48 (patch)
tree16d8a57a1f6f57a91a6a4cecff909242ee8b3c1f /module/network/HTTPChunk.py
parentMerge pull request #2582 from valdi74/patch-2 (diff)
downloadpyload-fixed.tar.xz
Fix UnicodeDecodeError in multiple stagesfixed
Based on patch: https://github.com/pyload/pyload/pull/2346/commits/71021a0f81232d1b78f9b61ac288922b0762c732 Contains one more fixed line.
Diffstat (limited to 'module/network/HTTPChunk.py')
-rw-r--r--module/network/HTTPChunk.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/module/network/HTTPChunk.py b/module/network/HTTPChunk.py
index b637aef32..a27084355 100644
--- a/module/network/HTTPChunk.py
+++ b/module/network/HTTPChunk.py
@@ -32,7 +32,7 @@ class WrongFormat(Exception):
class ChunkInfo():
def __init__(self, name):
- self.name = unicode(name)
+ self.name = unicode(name, 'utf-8')
self.size = 0
self.resume = False
self.chunks = []