1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/wordpress_ynh.git synced 2024-09-03 20:36:10 +02:00

Fix auto-updater requests

This commit is contained in:
tituspijean 2022-09-17 12:27:12 +02:00
parent d1a86f865a
commit 7c091bf573
No known key found for this signature in database
GPG key ID: EF3B0D7CC0A94720

View file

@ -57,7 +57,7 @@ def generate_src_files(repo: str, release: Any):
def sha256sum_of_url(url: str) -> str:
"""Compute checksum without saving the file"""
checksum = hashlib.sha256()
for chunk in requests.get(url, stream=True).iter_content():
for chunk in requests.get(url, stream=True).iter_content(10*1024):
checksum.update(chunk)
return checksum.hexdigest()