Skip to content

Commit fa6d9bc

Browse files
authored
Add enableMetaHeader to transport options (#2946)
1 parent fa29021 commit fa6d9bc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/client.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,10 @@ export default class Client extends API {
407407
productCheck: 'Elasticsearch',
408408
maxResponseSize: options.maxResponseSize,
409409
maxCompressedResponseSize: options.maxCompressedResponseSize,
410-
redaction: options.redaction
410+
redaction: options.redaction,
411+
/* eslint-disable-next-line @typescript-eslint/prefer-ts-expect-error */
412+
// @ts-ignore enableMetaHeader will be available in transport v9.1.1
413+
enableMetaHeader: options.enableMetaHeader
411414
}
412415
if (options.serverMode !== 'serverless') {
413416
transportOptions = Object.assign({}, transportOptions, {

0 commit comments

Comments
 (0)