aboutsummaryrefslogtreecommitdiffstats
path: root/netlib
diff options
context:
space:
mode:
authorThomas Kriechbaumer <Kriechi@users.noreply.github.com>2016-09-06 20:29:59 +0200
committerGitHub <noreply@github.com>2016-09-06 20:29:59 +0200
commit7841d73cb2f1be5e0fdf7c40c247f7ea68b0c945 (patch)
tree7a500b8db86562055a552d1564f2ff605487f8f7 /netlib
parentc76d83f749079b88a2b7b7a76545a7d571ed96a5 (diff)
parent5728a1c900dc566cd9cce728266204572c486d8a (diff)
downloadmitmproxy-7841d73cb2f1be5e0fdf7c40c247f7ea68b0c945.tar.gz
mitmproxy-7841d73cb2f1be5e0fdf7c40c247f7ea68b0c945.tar.bz2
mitmproxy-7841d73cb2f1be5e0fdf7c40c247f7ea68b0c945.zip
Merge pull request #1531 from Schamper/encoding-patch
Fix decoding when content-encoding: none
Diffstat (limited to 'netlib')
-rw-r--r--netlib/encoding.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/netlib/encoding.py b/netlib/encoding.py
index a3c83c46..9b8b3868 100644
--- a/netlib/encoding.py
+++ b/netlib/encoding.py
@@ -162,12 +162,14 @@ def encode_deflate(content):
custom_decode = {
+ "none": identity,
"identity": identity,
"gzip": decode_gzip,
"deflate": decode_deflate,
"br": decode_brotli,
}
custom_encode = {
+ "none": identity,
"identity": identity,
"gzip": encode_gzip,
"deflate": encode_deflate,