diff --git a/src/job.js b/src/job.js index b478492..2894752 100644 --- a/src/job.js +++ b/src/job.js @@ -48,6 +48,10 @@ export default class Job extends events.EventEmitter { } }; + if (options.headers) { + indexParams.headers = options.headers; + } + this.ready = createIndex(this.client, this.index, this.doctype, this.indexSettings) .then(() => this.client.index(indexParams)) .then((doc) => {