diff options
author | Philipp Hörist <philipp@hoerist.com> | 2023-01-02 00:00:31 +0300 |
---|---|---|
committer | Philipp Hörist <philipp@hoerist.com> | 2023-01-02 00:00:31 +0300 |
commit | 156a365a688f7e5071c2d1a6fa36d3d5227dc4f4 (patch) | |
tree | fbcdfb1db2b95944ebd9ab5d8919ea52240c5858 | |
parent | 8fc874b626a9e6c7ffaa7b92351a33a16f6602ad (diff) |
cfix: HTTP: Don’t special handle contet-length of zero
-rw-r--r-- | nbxmpp/http.py | 7 |
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', |