loic-sharma / BaGet

A lightweight NuGet and symbol server
https://loic-sharma.github.io/BaGet/
MIT License
2.58k stars 644 forks source link

Does the URL of the repository allow only https? #713

Open toras9000 opened 2 years ago

toras9000 commented 2 years ago

When I registered the package on my local BaGet instance, I noticed that it didn't reflect the repository URL in the http schema. Looking at the code, I speculated that it might be due to the following code in GetRepositoryMetadata() of PackageArchiveReaderExtensions.cs not allowing anything other than https.

if (repositoryUri.Scheme != Uri.UriSchemeHttps)

Is this clearly planned?

Thanks