Skip to content

Commit abe81bf

Browse files
committed
Update compatibility mimetype to not use internal version number
1 parent 96eb5dd commit abe81bf

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
@@ -42,9 +42,7 @@
4242
from .utils import _base64_auth_header, _quote_query
4343

4444
_WARNING_RE = re.compile(r"\"([^\"]*)\"")
45-
_COMPAT_MIMETYPE_TEMPLATE = "application/vnd.elasticsearch+%s; compatible-with=" + str(
46-
__versionstr__.partition(".")[0]
47-
)
45+
_COMPAT_MIMETYPE_TEMPLATE = "application/vnd.elasticsearch+%s; compatible-with=8"
4846
_COMPAT_MIMETYPE_RE = re.compile(r"application/(json|x-ndjson|vnd\.mapbox-vector-tile)")
4947
_COMPAT_MIMETYPE_SUB = _COMPAT_MIMETYPE_TEMPLATE % (r"\g<1>",)
5048

0 commit comments

Comments
 (0)