kendarorg / PhpNuget

Php nuget manager supporting complex queries on txt files or MySQL
http://www.kendar.org/?p=/dotnet/phpnuget
Other
23 stars 15 forks source link

Case insensitive API search #49

Closed crt closed 7 years ago

crt commented 7 years ago

Hi,

I am using 4.0.0.0 version for a local chocolatey repo and have a problem with case sensitivity.

I created a FirefoxESR packages based on the original chocolatey template file: https://chocolatey.org/packages/FirefoxESR

However, chocolatey cannot download the nuget package because it searches for 'firefoxesr' not 'FirefoxESR' and the server doesn't find it.

It can be tested with a simple curl command, this works: curl "http://localhost/choco/api/v2/Packages(Id='firefoxesr',Version='45.5.1')" but this doesn't: curl "http://localhost/choco/api/v2/Packages(Id='FirefoxESR',Version='45.5.1')"

I would prefer not to touch anything in the original template file but the download url which points to a local webserver. Would it be possible to make the query of the package id case insensitive or to add an option to do so?

Thank you, Zoli

kendarorg commented 7 years ago

Fixed on 4.0.0.1