From d1af56e411f7dff700dd5f70988b949cea671144 Mon Sep 17 00:00:00 2001 From: Hieuzest Date: Wed, 13 Mar 2024 18:46:47 +0800 Subject: [PATCH] fix(satori): missing headers for satori api --- adapters/satori/src/ws.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/adapters/satori/src/ws.ts b/adapters/satori/src/ws.ts index 2bcbc347..480a43f8 100644 --- a/adapters/satori/src/ws.ts +++ b/adapters/satori/src/ws.ts @@ -58,7 +58,12 @@ export class SatoriAdapter extends Adapter.WsClient bot = new SatoriBot(this.ctx, login) this.bots.push(bot) bot.adapter = this - bot.http = this.http + bot.http = this.http.extend({ + headers: { + 'X-Platform': platform, + 'X-Self-ID': selfId, + }, + }) bot.status = login.status }