Skip to content

Commit

Permalink
Merge pull request #515 from clearlydefined/mpcen/lowercasing-nuget-p…
Browse files Browse the repository at this point in the history
…ackagenames

lowercasing package names for nuget api fetching
  • Loading branch information
mpcen authored Mar 6, 2023
2 parents 5556655 + ee2c5d0 commit 522a727
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"editor.folding": false,
"editor.tabSize": 2,
"editor.detectIndentation": false,
"editor.formatOnSave": true,
"editor.formatOnSave": false,
"editor.formatOnType": true,
"editor.insertSpaces": true,
"files.trimTrailingWhitespace": true
}
}
2 changes: 1 addition & 1 deletion providers/fetch/nugetFetch.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ class NuGetFetch extends AbstractFetch {
// https://docs.microsoft.com/en-us/nuget/api/package-base-address-resource#download-package-manifest-nuspec
// Example: https://api.nuget.org/v3-flatcontainer/newtonsoft.json/11.0.1/newtonsoft.json.nuspec
const { body, statusCode } = await requestRetry.get(
`https://api.nuget.org/v3-flatcontainer/${spec.name}/${spec.revision}/${spec.name}.nuspec`
`https://api.nuget.org/v3-flatcontainer/${spec.name.toLowerCase()}/${spec.revision}/${spec.name.toLowerCase()}.nuspec`
)
if (statusCode !== 200) return null
return body
Expand Down

0 comments on commit 522a727

Please sign in to comment.