aboutsummaryrefslogtreecommitdiffstats
path: root/netlib/http
diff options
context:
space:
mode:
authorAngelo Agatino Nicolosi <angelonicolosi@yanchware.com>2016-07-30 14:43:53 +0200
committerAngelo Agatino Nicolosi <angelonicolosi@yanchware.com>2016-07-30 14:43:53 +0200
commit6792ec40587bde8dbd7fac67c35038afc126e80b (patch)
tree42ab1028380897a835bcf7e07eadd4e2a60b9a14 /netlib/http
parent63f64cd66086f302f53456f29f60b1e28c8ee178 (diff)
downloadmitmproxy-6792ec40587bde8dbd7fac67c35038afc126e80b.tar.gz
mitmproxy-6792ec40587bde8dbd7fac67c35038afc126e80b.tar.bz2
mitmproxy-6792ec40587bde8dbd7fac67c35038afc126e80b.zip
Integrated encode/decoder for brotli
Diffstat (limited to 'netlib/http')
-rw-r--r--netlib/http/message.py2
-rw-r--r--netlib/http/request.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/netlib/http/message.py b/netlib/http/message.py
index be35b8d1..ce92bab1 100644
--- a/netlib/http/message.py
+++ b/netlib/http/message.py
@@ -248,7 +248,7 @@ class Message(basetypes.Serializable):
def encode(self, e):
"""
- Encodes body with the encoding e, where e is "gzip", "deflate" or "identity".
+ Encodes body with the encoding e, where e is "gzip", "deflate", "identity", or "br".
Any existing content-encodings are overwritten,
the content is not decoded beforehand.
diff --git a/netlib/http/request.py b/netlib/http/request.py
index 061217a3..d59fead4 100644
--- a/netlib/http/request.py
+++ b/netlib/http/request.py
@@ -337,7 +337,7 @@ class Request(message.Message):
self.headers["accept-encoding"] = (
', '.join(
e
- for e in {"gzip", "identity", "deflate"}
+ for e in {"gzip", "identity", "deflate", "br"}
if e in accept_encoding
)
)