jolpica / jolpica-f1

Apache License 2.0
92 stars 4 forks source link

Filter values that include a "-" result in 404 #21

Closed theOehrly closed 6 months ago

theOehrly commented 6 months ago

If any filter value in the API path includes a "-", this results in the server returning HTTP status code 404 instead of the correct response.

Examples: http://api.jolpi.ca/ergast/f1/circuits/ain-diab/seasons.json http://api.jolpi.ca/ergast/f1/constructors/brabham-brm/seasons.json (and more)

The problem seems to be limited to constructor and circuit ids. It looks like no other valid filter values include a "-".