shaystack icon indicating copy to clipboard operation
shaystack copied to clipboard

CSV by Default in content negotiation

Open spillz-dxb opened this issue 4 months ago • 6 comments

Describe the bug The Http server api , by default serves data in csv format , if the accept headers arent used . Is there a way to change it to json or zinc by default. The grafana data source fails because of this as there is no way to add http headers in the data source.

To Reproduce Steps to reproduce the behavior: Open browser and use get method for http://localhost:3000/haystack/ returns a CSV file instead of in browser zinc or json for other implementations .

Expected behavior By default a zinc or json format is expected , or means to change the default to different formats in shaystack

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Docker
  • Browser :Edge

Additional context Add any other context about the problem here.

spillz-dxb avatar Sep 27 '24 03:09 spillz-dxb