Skip to content

Commit 08d2f8e

Browse files
Correct two comments on the mirror download
1 parent dc51287 commit 08d2f8e

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

‎socketsecurity/core/tools/reachability.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ def download(component: _CoanaComponent, dest: pathlib.Path) -> None:
419419
) as response:
420420
if 400 <= response.status_code < 500:
421421
raise _DownloadRefused(f"{host} refused the Coana CLI URL with status {response.status_code}")
422-
# raise_for_status would show the URL, with the mirror's credentials and the signature.
422+
# The URL holds the signature, and a mirror's URL may carry credentials.
423423
if not response.ok:
424424
raise Exception(f"{host} responded with status {response.status_code} to the Coana CLI download")
425425
digest = hashlib.sha256()

‎tests/unit/test_reachability.py‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
33
A fake cli-wrapper.mjs is installed into a temporary cache with the real coana-cache.mjs. The
44
fake records the args, cwd and environment it was run with. The tests of downloads through the
5-
mirror that SOCKET_COANA_MIRROR_URL names mock the Socket API and the download, and start from an
6-
empty cache.
5+
mirror that SOCKET_COANA_MIRROR_URL names mock the Socket API and the download.
76
"""
87
import hashlib
98
import io

0 commit comments

Comments
 (0)