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:
Ilja Nosik
2017-02-02 07:34:12 +01:00
parent 39fad05a21
commit 4a1d4158a7

View File

@@ -14,9 +14,9 @@ function substitute([String] $str, [Hashtable] $params) {
}
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
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
}