deislabs / bindle

Bindle: Object Storage for Collections
Apache License 2.0
263 stars 37 forks source link

GET /v1/_q returns data with 405 Not Allowed #331

Closed bacongobbler closed 2 years ago

bacongobbler commented 2 years ago

If I run bindle-server with the following parameters:

><> bindle-server --unauthenticated

Then try to curl the endpoint, I receive a 405 Not Allowed:

><> curl http://localhost:8080/v1/_q -I
HTTP/1.1 405 Method Not Allowed
content-type: text/plain; charset=utf-8
content-length: 23
date: Thu, 07 Apr 2022 17:04:18 GMT

...But I still get data back from the server.

><> curl -s http://localhost:8080/v1/_q | tail -n 2
role = "host"
at = 1647369693

Is this unintentional behaviour?

thomastaylor312 commented 2 years ago

Yeah, definitely a bug