Skip to content

Commit a0c5c98

Browse files
authored
Upgrade transport (#1618)
1 parent 451a805 commit a0c5c98

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
"xmlbuilder2": "^3.0.2"
8181
},
8282
"dependencies": {
83-
"@elastic/transport": "^8.1.0-beta.1",
83+
"@elastic/transport": "^8.0.1",
8484
"tslib": "^2.3.0"
8585
},
8686
"tap": {

src/client.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,12 @@ export default class Client extends API {
251251
context: options.context,
252252
productCheck: 'Elasticsearch',
253253
maxResponseSize: options.maxResponseSize,
254-
maxCompressedResponseSize: options.maxCompressedResponseSize
254+
maxCompressedResponseSize: options.maxCompressedResponseSize,
255+
vendoredHeaders: {
256+
jsonContentType: 'application/vnd.elasticsearch+json; compatible-with=8',
257+
ndjsonContentType: 'application/vnd.elasticsearch+x-ndjson; compatible-with=8',
258+
accept: 'application/vnd.elasticsearch+json; compatible-with=8,text/plain'
259+
}
255260
})
256261

257262
this.helpers = new Helpers({

0 commit comments

Comments
 (0)