🐛 fix fastapi forward header duplicate (fix #560)

This commit is contained in:
yanyongyu 2021-10-11 17:53:49 +08:00
parent 3722547f1c
commit c81c0578e3

View File

@ -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}"
)