Skip to content

Commit 3428609

Browse files
committed
download models using https
There is a checksum check, and server-side there is a redirect to https, but that also means there is no point in not using https right away.
1 parent d2a4281 commit 3428609

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ms2pip/_utils/xgb_models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def _download_model(model, model_hash, model_dir):
9797

9898
logger.info(f"Downloading {model} to {filename}...")
9999
urllib.request.urlretrieve(
100-
os.path.join("http://genesis.ugent.be/uvpublicdata/ms2pip/", model), filename
100+
os.path.join("https://genesis.ugent.be/uvpublicdata/ms2pip/", model), filename
101101
)
102102
if not _check_model_integrity(filename, model_hash):
103103
raise InvalidXGBoostModelError()

0 commit comments

Comments
 (0)