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:
parent
d1a86f865a
commit
7c091bf573
1 changed files with 1 additions and 1 deletions
2
.github/workflows/updater.py
vendored
2
.github/workflows/updater.py
vendored
|
@ -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()
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue