From 156a365a688f7e5071c2d1a6fa36d3d5227dc4f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=B6rist?= Date: Sun, 1 Jan 2023 22:00:31 +0100 Subject: =?UTF-8?q?cfix:=20HTTP:=20Don=E2=80=99t=20special=20handle=20cont?= =?UTF-8?q?et-length=20of=20zero?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nbxmpp/http.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/nbxmpp/http.py b/nbxmpp/http.py index e8a7148..8f50b04 100644 --- a/nbxmpp/http.py +++ b/nbxmpp/http.py @@ -419,13 +419,6 @@ class HTTPRequest(GObject.GObject): self.cancel() return - self._response_content_length = headers.get_content_length() - if self._response_content_length == 0: - self._log.warning('No content-length in response') - self._no_content_length_set = True - self.cancel() - return - self._response_content_type = content_type self._log.info('Sniffed: content-type: %s, content-length: %s', -- cgit v1.2.3