How to set Content-type header to application/x-ndjson?

Hi saii,

what version of ES are you using? In general, you can specify within the curl itself how to ensure:

curl -XGET "http://localhost:9200/_cat/indices" -H 'Content-Type: application/json'

1 Like