Skip to content

Commit 28678d6

Browse files
Xaenaltclaudecursoragent
committed
fix(cache): use urlparse for case-insensitive HTTP scheme check
Co-Authored-By: Claude <claude@anthropic.com> Signed-off-by: Sean Pryor <spryor@redhat.com> Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 13c90b3 commit 28678d6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/fromager/cache.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,7 @@ def _parse_project_page(html: str, base_url: str) -> list[ArtifactInfo]:
590590
url = url_part
591591

592592
# Reject plaintext HTTP URLs that lack integrity metadata
593-
if url.startswith("http://") and not sha256:
593+
if urlparse(url).scheme.lower() == "http" and not sha256:
594594
logger.warning(
595595
"skipping insecure artifact %r (http without sha256)", filename
596596
)

0 commit comments

Comments
 (0)