summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 047ccc5a0..4ba819615 100644
--- a/module/network/HTTPChunk.py
+++ b/module/network/HTTPChunk.py
@@ -261,7 +261,7 @@ class HTTPChunk(HTTPRequest):
# extended version according to RFC 6266 and RFC 5987.
encoding = line.partition("*=")[2].partition("''")[0]
name = orgline.partition("''")[2]
- name = urllib.unquote(name.encode('ascii')).decode(charEnc(encoding))
+ name = urllib.unquote(str(name)).decode(charEnc(encoding))
else:
# basic version, US-ASCII only
name = orgline.partition("filename=")[2]