mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-26 18:18:25 +00:00
Fix decoding when content-encoding: none
This commit is contained in:
parent
c76d83f749
commit
8702c9357d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user