REMOVE me. workaround until fixed in the es client

This commit is contained in:
restrry 2021-10-21 07:46:36 +02:00
parent a33d8fc0b1
commit c038850c09

View file

@ -218,7 +218,7 @@ async function installPipeline({
if (pipeline.extension === 'yml') {
esClientRequestOptions.headers = {
// pipeline is YAML
'Content-Type': 'application/yaml',
'Content-Type': 'application/yaml; compatible-with=8',
// but we want JSON responses (to extract error messages, status code, or other metadata)
Accept: 'application/json',
};