diff options
author | Philipp Hörist <philipp@hoerist.com> | 2023-01-02 00:21:38 +0300 |
---|---|---|
committer | Philipp Hörist <philipp@hoerist.com> | 2023-01-02 00:21:38 +0300 |
commit | c3b9bd4e7ed989ed1bfe78620748fbe97aebb129 (patch) | |
tree | bde43eeda12564c118165235a1acab1705ab49f9 | |
parent | 1dbc2ed48b979cb95bcb8b0f0d43cd03fd55fcfd (diff) |
cfix: HTTP: Store lost content-length again
-rw-r--r-- | nbxmpp/http.py | 2 |
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. |