Skip to content

Commit 2cb7d46

Browse files
committed
Update compatibility mimetype to not use internal version number
1 parent a857176 commit 2cb7d46

File tree

1 file changed

+1
-3
lines changed
  • elasticsearch_serverless/_sync/client

1 file changed

+1
-3
lines changed

elasticsearch_serverless/_sync/client/_base.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,7 @@
5757
from .utils import _TYPE_SYNC_SNIFF_CALLBACK, _base64_auth_header, _quote_query
5858

5959
_WARNING_RE = re.compile(r"\"([^\"]*)\"")
60-
_COMPAT_MIMETYPE_TEMPLATE = "application/vnd.elasticsearch+%s; compatible-with=" + str(
61-
__versionstr__.partition(".")[0]
62-
)
60+
_COMPAT_MIMETYPE_TEMPLATE = "application/vnd.elasticsearch+%s; compatible-with=8"
6361
_COMPAT_MIMETYPE_RE = re.compile(r"application/(json|x-ndjson|vnd\.mapbox-vector-tile)")
6462
_COMPAT_MIMETYPE_SUB = _COMPAT_MIMETYPE_TEMPLATE % (r"\g<1>",)
6563

0 commit comments

Comments
 (0)