mirror of
https://github.com/nonebot/nonebot2.git
synced 2024-11-30 17:15:08 +08:00
🐛 fix fastapi forward header duplicate (fix #560)
This commit is contained in:
parent
3722547f1c
commit
c81c0578e3
@ -480,7 +480,7 @@ class Driver(ReverseDriver, ForwardDriver):
|
||||
)
|
||||
return
|
||||
|
||||
headers = {**setup_.headers, "host": url.netloc.decode("ascii")}
|
||||
headers = setup_.headers.copy()
|
||||
logger.debug(
|
||||
f"Bot {setup_.self_id} from adapter {setup_.adapter} connecting to {url}"
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user