aboutsummaryrefslogtreecommitdiffstats
path: root/netlib/encoding.py
diff options
context:
space:
mode:
Diffstat (limited to 'netlib/encoding.py')
-rw-r--r--netlib/encoding.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/netlib/encoding.py b/netlib/encoding.py
index a3c83c46..040aceaf 100644
--- a/netlib/encoding.py
+++ b/netlib/encoding.py
@@ -34,7 +34,7 @@ def decode(encoded, encoding, errors='strict'):
Raises:
ValueError, if decoding fails.
"""
- if len(encoded) == 0:
+ if len(encoded) == 0 or encoding == "none":
return encoded
global _cache