mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-26 18:18:25 +00:00
Also fix for encoding
This commit is contained in:
parent
8702c9357d
commit
c16417248c
@ -76,7 +76,7 @@ def encode(decoded, encoding, errors='strict'):
|
||||
Raises:
|
||||
ValueError, if encoding fails.
|
||||
"""
|
||||
if len(decoded) == 0:
|
||||
if len(decoded) == 0 or encoding == "none":
|
||||
return decoded
|
||||
|
||||
global _cache
|
||||
|
Loading…
Reference in New Issue
Block a user