diff options
author | Philipp Hörist <philipp@hoerist.com> | 2023-05-21 13:17:22 +0300 |
---|---|---|
committer | Philipp Hörist <philipp@hoerist.com> | 2023-05-21 13:17:22 +0300 |
commit | 618834af677a2011b4cc626cb5610fc944a16103 (patch) | |
tree | c1d0b6f901e899d624fc0f3b18a32209efd1711d | |
parent | 39e2dbf85f1e4a428b0e25277e2da53e7d4cafd4 (diff) |
fix: HTTP: Don’t accept content encoding
Currently libsoup does not offer any signal which communicates
the transfered size over the network, which makes it impossible
to track progress for encoded content.
Fixes #143
-rw-r--r-- | nbxmpp/http.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/nbxmpp/http.py b/nbxmpp/http.py index 7a862f5..25e3c10 100644 --- a/nbxmpp/http.py +++ b/nbxmpp/http.py @@ -62,6 +62,7 @@ class HTTPSession: self._session = Soup.Session() self._session.set_user_agent(user_agent) self._session.add_feature_by_type(Soup.ContentSniffer) + self._session.remove_feature_by_type(Soup.ContentDecoder) def get_soup_session(self) -> Soup.Session: return self._session |