Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
0xF6 committed Aug 31, 2024
1 parent a15c487 commit 4a864b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controllers/PackageContentController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public async Task<IActionResult> DownloadPackageAsync(string id, string version,
{
if (version is ("latest" or "next"))
return BadRequest(new { message = "not allowed using latest or next version for this endpoint" });
if (NuGetVersion.TryParse(version, out var ver))
if (!NuGetVersion.TryParse(version, out var ver))
return BadRequest(new { message = "invalid version" });

var packageStream = await content.GetPackageContentStreamOrNullAsync(id, ver, cancellationToken);
Expand Down

0 comments on commit 4a864b8

Please sign in to comment.