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-01-02 00:21:38 +0300
committerPhilipp Hörist <philipp@hoerist.com>2023-01-02 00:21:38 +0300
commitc3b9bd4e7ed989ed1bfe78620748fbe97aebb129 (patch)
treebde43eeda12564c118165235a1acab1705ab49f9
parent1dbc2ed48b979cb95bcb8b0f0d43cd03fd55fcfd (diff)
cfix: HTTP: Store lost content-length again
-rw-r--r--nbxmpp/http.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/nbxmpp/http.py b/nbxmpp/http.py
index 6d37acd..d0f8a07 100644
--- a/nbxmpp/http.py
+++ b/nbxmpp/http.py
@@ -419,6 +419,8 @@ class HTTPRequest(GObject.GObject):
self.cancel()
return
+ self._response_content_length = headers.get_content_length()
+
if content_type is None:
# According to the docs, content_type is None when the sniffer
# decides to trust the content-type sent by the server.