Philipp Hörist pushed to branch master at gajim / gajim


Commits:
83dc93b6 by Philipp Hörist at 2026-02-18T21:37:29+01:00
cfix: HTTP: Don't abort download to early

- - - - -


1 changed file:

- gajim/common/multiprocess/http.py


Changes:

=====================================
gajim/common/multiprocess/http.py
=====================================
@@ -302,7 +302,6 @@ def _read_file_generator() -> Iterable[bytes]:
         )
 
     resp_hash_obj = hashlib.new(hash_algo)
-
     max_bytes_downloaded = content_length or NO_CONTENT_LENGTH_MAX_DOWNLOAD
 
     with file_method() as output_file:
@@ -331,7 +330,7 @@ def _read_file_generator() -> Iterable[bytes]:
                     )
                 )
 
-            if resp.num_bytes_downloaded >= max_download_size:
+            if resp.num_bytes_downloaded >= max_download_size > 0:
                 break
 
         data = decryptor.finalize()



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/83dc93b69ff5e5b3e3f7b8bbf136b48299d5d87f

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/83dc93b69ff5e5b3e3f7b8bbf136b48299d5d87f
You're receiving this email because of your account on dev.gajim.org.


_______________________________________________
Commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to