Fix decoding when content-encoding: none

This commit is contained in:
Schamper 2016-09-06 10:24:36 +02:00
parent c76d83f749
commit 8702c9357d

View File

@ -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