Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/python-nbxmpp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Hörist <philipp@hoerist.com>2023-05-21 13:17:22 +0300
committerPhilipp Hörist <philipp@hoerist.com>2023-05-21 13:17:22 +0300
commit618834af677a2011b4cc626cb5610fc944a16103 (patch)
treec1d0b6f901e899d624fc0f3b18a32209efd1711d
parent39e2dbf85f1e4a428b0e25277e2da53e7d4cafd4 (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.py1
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