Skip to content

Commit

Permalink
Ensure case when getting packages from nuget feed
Browse files Browse the repository at this point in the history
  • Loading branch information
MrLuje committed Jan 10, 2017
1 parent 4dada1e commit c93d19f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Paket.Core/NuGetV2.fs
Original file line number Diff line number Diff line change
Expand Up @@ -241,15 +241,15 @@ let parseODataDetails(url,nugetURL,packageName:PackageName,version:SemVerInfo,ra
let getDetailsFromNuGetViaODataFast auth nugetURL (packageName:PackageName) (version:SemVerInfo) =
async {
try
let url = sprintf "%s/Packages?$filter=(tolower(Id) eq '%O') and (NormalizedVersion eq '%s')" nugetURL packageName (version.Normalize())
let url = sprintf "%s/Packages?$filter=(tolower(Id) eq '%s') and (NormalizedVersion eq '%s')" nugetURL (packageName.GetCompareString()) (version.Normalize())
let! raw = getFromUrl(auth,url,acceptXml)
if verbose then
tracefn "Response from %s:" url
tracefn ""
tracefn "%s" raw
return parseODataDetails(url,nugetURL,packageName,version,raw)
with _ ->
let url = sprintf "%s/Packages?$filter=(tolower(Id) eq '%O') and (Version eq '%O')" nugetURL packageName version
let url = sprintf "%s/Packages?$filter=(tolower(Id) eq '%s') and (Version eq '%O')" nugetURL (packageName.GetCompareString()) version
let! raw = getFromUrl(auth,url,acceptXml)
if verbose then
tracefn "Response from %s:" url
Expand Down

0 comments on commit c93d19f

Please sign in to comment.