add headers type (#2150)

* add headers type

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* updates

Signed-off-by: Jess Frazelle <github@jessfraz.com>

---------

Signed-off-by: Jess Frazelle <github@jessfraz.com>
This commit is contained in:
Jess Frazelle
2024-04-17 06:42:29 -07:00
committed by GitHub
parent ed69213680
commit 624b1fc07d

View File

@ -560,7 +560,10 @@ class EngineConnection {
// Otherwise when run in a browser, the token is sent implicitly via
// the Cookie header.
if (this.token) {
this.send({ headers: { Authorization: `Bearer ${this.token}` } })
this.send({
type: 'headers',
headers: { Authorization: `Bearer ${this.token}` },
})
}
})