mirror of
https://github.com/ScoopInstaller/Scoop.git
synced 2025-12-12 11:06:34 +00:00
Assume that nuget.org URLs are valid
NuGet-Galleries (such as nuget.org or chocolatey.org) don't seem to support HEAD requests.
This commit is contained in:
@@ -14,9 +14,9 @@ function substitute([String] $str, [Hashtable] $params) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function check_url([String] $url) {
|
function check_url([String] $url) {
|
||||||
if ($url.Contains("github.com") -or $url.Contains("chocolatey.org")) {
|
if ($url.Contains("github.com") -or $url.Contains("nuget.org") -or $url.Contains("chocolatey.org")) {
|
||||||
# github does not allow HEAD requests
|
# github does not allow HEAD requests
|
||||||
warn "Unable to check github/chocolatey url (assuming it is ok)"
|
warn "Unable to check github/nuget/chocolatey url (assuming it is ok)"
|
||||||
return $true
|
return $true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user