From b0ef6181dcf0c9b91b2ae7e966bc0e60541e36ca Mon Sep 17 00:00:00 2001 From: sven-n Date: Sat, 23 Jul 2022 15:38:56 +0200 Subject: [PATCH] Use v3-flatcontainer API with lower-case package name I just stumbled across this issue and had to manually change my PACKAGE_NAME to be lower-case. However, this feels like a workaround, because my package name is actually not lower-case. See also: https://github.com/NuGet/NuGetGallery/issues/9105 --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 1733133..6f2437c 100644 --- a/index.js +++ b/index.js @@ -97,7 +97,7 @@ class Action { console.log(`Package Name: ${this.packageName}`) - https.get(`${this.nugetSource}/v3-flatcontainer/${this.packageName}/index.json`, res => { + https.get(`${this.nugetSource}/v3-flatcontainer/${this.packageName.toLowerCase()}/index.json`, res => { let body = "" if (res.statusCode == 404)