mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-02-17 16:20:05 +08:00
🐛 fix fastapi driver ws missing header
This commit is contained in:
parent
4f4a072dd7
commit
b5f2b1a76d
@ -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())} "
|
||||
|
Loading…
x
Reference in New Issue
Block a user