fix #79: remove compatibility header

This commit is contained in:
2026-07-08 09:28:28 +02:00
parent 1d45a3cd4c
commit 5d7050018f
2 changed files with 27 additions and 1 deletions

View File

@@ -189,6 +189,7 @@ func (cluster *Cluster) getDefaultOptions() []elasticsearch.Option {
cluster.getTransport(),
elastictransport.WithHeader(headers),
),
elasticsearch.WithCompatibilityMode(),
}
}
@@ -203,7 +204,9 @@ func (cluster *Cluster) getTransport() elastictransport.Option {
)
}
return elastictransport.WithTransport(transport)
return elastictransport.WithTransport(
&CompatibilityTransport{Transport: transport},
)
}
func (conf *Config) SetupES() error {