fix #79: remove compatibility header (#80)

This commit is contained in:
T. von Dein
2026-07-08 09:33:22 +02:00
parent 1d45a3cd4c
commit 3d3dfb7a42
3 changed files with 28 additions and 2 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 {