diff options
Diffstat (limited to 'netlib/http')
-rw-r--r-- | netlib/http/__init__.py | 3 | ||||
-rw-r--r-- | netlib/http/message.py | 2 | ||||
-rw-r--r-- | netlib/http/request.py | 2 |
3 files changed, 4 insertions, 3 deletions
diff --git a/netlib/http/__init__.py b/netlib/http/__init__.py index fdf4ef8f..436b5965 100644 --- a/netlib/http/__init__.py +++ b/netlib/http/__init__.py @@ -9,7 +9,8 @@ from netlib.http import http1, http2, status_codes, multipart __all__ = [ "Request", "Response", + "Message", "Headers", "parse_content_type", "decoded", "http1", "http2", "status_codes", "multipart", -]
\ No newline at end of file +] 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 ) ) |