Skip to content

Commit 988ab8f

Browse files
author
Joe Goggins
committed
EventStream connect() passes http headers to http request method
1 parent 3fb1350 commit 988ab8f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/EventStream.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ class EventStream extends EventEmitter {
4141
path: `${path}?access_token=${this.token}`,
4242
method: 'get',
4343
port: parseInt(port, 10) || (isSecure ? 443 : 80),
44-
mode: 'prefer-streaming'
44+
mode: 'prefer-streaming',
45+
headers: this.options.headers
4546
});
4647

4748
this.req = req;

0 commit comments

Comments
 (0)