diff options
author | kmarty <kmarty@kebik.cz> | 2014-12-01 17:50:16 +0100 |
---|---|---|
committer | kmarty <kmarty@kebik.cz> | 2014-12-01 17:50:16 +0100 |
commit | 066b118e641ad612106eca4904c307e4c128e00e (patch) | |
tree | e3bd6ffa253529ff6933c7f87509c76d5f0c43a4 /module | |
parent | - Extended Content-Disposition filename support. (diff) | |
download | pyload-066b118e641ad612106eca4904c307e4c128e00e.tar.xz |
Better solution how to change unicode string to string.
Diffstat (limited to 'module')
-rw-r--r-- | module/network/HTTPChunk.py | 2 |
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] |