🐛 fix fastapi driver ws missing header

This commit is contained in:
yanyongyu 2021-08-25 23:04:48 +08:00
parent 4f4a072dd7
commit b5f2b1a76d

View File

@ -439,7 +439,7 @@ class Driver(ReverseDriver, ForwardDriver):
f"Bot {setup_.self_id} from adapter {setup_.adapter} connecting to {url}"
)
try:
connection = Connect(setup_.url)
connection = Connect(setup_.url, extra_headers=headers)
async with connection as ws:
logger.opt(colors=True).info(
f"WebSocket Connection to <y>{escape_tag(setup_.adapter.upper())} "