[gimp-web/wip/Jehan/fix-ci] Stop the "stream" option.
- From: Jehan <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp-web/wip/Jehan/fix-ci] Stop the "stream" option.
- Date: Mon, 2 May 2022 16:34:56 +0000 (UTC)
commit d3cd126443e79c0e61618fdc5bf542b4aad010e8
Author: Jehan <jehan girinstud io>
Date: Mon May 2 18:34:42 2022 +0200
Stop the "stream" option.
tools/downloads/gimp-check-mirrors.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/tools/downloads/gimp-check-mirrors.py b/tools/downloads/gimp-check-mirrors.py
index babc379e..435a9c6c 100755
--- a/tools/downloads/gimp-check-mirrors.py
+++ b/tools/downloads/gimp-check-mirrors.py
@@ -104,15 +104,15 @@ def verify_remote(uri, future):
try:
if future is not None:
headers = {'user-agent': 'Mozilla/5.0'}
- with requests.get(uri, headers=headers, stream=True, timeout=10) as response:
+ with requests.get(uri, headers=headers, timeout=10) as response:
m = hashlib.sha256()
# I don't think the chunk_size is useful, since docs
# says that "stream=True will read data as it arrives
# in whatever size the chunks are received" which is
# the ideal way. But if it doesn't, let's use 2**16 as
# a reasonable chunk size to process.
- for line in response.iter_content(chunk_size=65536, decode_unicode=False):
- m.update(line)
+ #for line in response.iter_content(chunk_size=65536, decode_unicode=False):
+ m.update(response.content)
if m.digest() == future.result():
checksum_ok = True
success = True
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]