diff options
-rw-r--r-- | netlib/encoding.py | 2 |
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 |