bridgedb / BridgeDbWebservice

BridgeDb Webservice
Apache License 2.0
1 stars 2 forks source link

for `/properties` the default return type is JSON, not plain text #2

Closed egonw closed 1 year ago

egonw commented 1 year ago

Compare the following three:

curl -i -H "Accept: text/plain" http://localhost:8080/Homo%20sapiens/properties
curl -i -H "Accept: application/json" http://localhost:8080/Homo%20sapiens/properties
curl -i http://localhost:8080/Homo%20sapiens/properties
egonw commented 1 year ago

The problem is that when no Accept is given, the current correct assumes(?) it is JSON.

egonw commented 1 year ago

I believe I fixed this just now in https://github.com/bridgedb/BridgeDbWebservice/commit/ad18262fadb0aeaf21be0b73311cbe3443565381