nroi / flexo

a central pacman cache
MIT License
172 stars 10 forks source link

Improve validation for GET request path #89

Closed nroi closed 2 years ago

nroi commented 2 years ago

Requesting the empty path, e.g.

curl -v 'http://localhost:7878' > /dev/null

causes a bunch of warnings and errors related to IO. Instead, we should immediately return a 400 to the user.

More details are described here: https://github.com/nroi/flexo/issues/88