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:00:31 +0300
committerPhilipp Hörist <philipp@hoerist.com>2023-01-02 00:00:31 +0300
commit156a365a688f7e5071c2d1a6fa36d3d5227dc4f4 (patch)
treefbcdfb1db2b95944ebd9ab5d8919ea52240c5858
parent8fc874b626a9e6c7ffaa7b92351a33a16f6602ad (diff)
cfix: HTTP: Don’t special handle contet-length of zero
-rw-r--r--nbxmpp/http.py7
1 files changed, 0 insertions, 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',