Skip to content

Commit

Permalink
Lowercase plugin name for shield.io urls
Browse files Browse the repository at this point in the history
  • Loading branch information
TheStonedTurtle committed Oct 6, 2024
1 parent fe2136e commit 5588c96
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ public ResponseEntity<Map<String, Long>> get()
@GetMapping("/shields/installs/plugin/{pluginName}")
public ResponseEntity<ShieldsFormat> installs(@PathVariable String pluginName)
{
pluginName = pluginName.toLowerCase();
if (pluginCounts.isEmpty())
{
return ResponseEntity.status(HttpStatus.SERVICE_UNAVAILABLE)
Expand All @@ -106,6 +107,7 @@ public ResponseEntity<ShieldsFormat> installs(@PathVariable String pluginName)
@GetMapping("/shields/rank/plugin/{pluginName}")
public ResponseEntity<ShieldsFormat> rank(@PathVariable String pluginName)
{
pluginName = pluginName.toLowerCase();
if (pluginCounts.isEmpty())
{
return ResponseEntity.status(HttpStatus.SERVICE_UNAVAILABLE)
Expand Down

0 comments on commit 5588c96

Please sign in to comment.