From 090a1409bfb962f720041d4622de87d946737248 Mon Sep 17 00:00:00 2001 From: serious Date: Wed, 7 Aug 2024 17:24:07 +0200 Subject: [PATCH] fix: Allow package repository urls to be http. (https://github.com/bagetter/BaGetter/issues/151) --- src/BaGetter.Core/Extensions/PackageArchiveReaderExtensions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BaGetter.Core/Extensions/PackageArchiveReaderExtensions.cs b/src/BaGetter.Core/Extensions/PackageArchiveReaderExtensions.cs index 129100350..4cbd84852 100644 --- a/src/BaGetter.Core/Extensions/PackageArchiveReaderExtensions.cs +++ b/src/BaGetter.Core/Extensions/PackageArchiveReaderExtensions.cs @@ -159,7 +159,7 @@ private static (Uri repositoryUrl, string repositoryType) GetRepositoryMetadata( return (null, null); } - if (repositoryUri.Scheme != Uri.UriSchemeHttps) + if (repositoryUri.Scheme != Uri.UriSchemeHttps && repositoryUri.Scheme != Uri.UriSchemeHttp) { return (null, null); }