🔀 Merge pull request #561

Fix: fastapi driver forward header error
This commit is contained in:
Ju4tCode 2021-10-11 18:00:17 +08:00 committed by GitHub
commit 9a44a2ff2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -480,7 +480,7 @@ class Driver(ReverseDriver, ForwardDriver):
) )
return return
headers = {**setup_.headers, "host": url.netloc.decode("ascii")} headers = setup_.headers.copy()
logger.debug( logger.debug(
f"Bot {setup_.self_id} from adapter {setup_.adapter} connecting to {url}" f"Bot {setup_.self_id} from adapter {setup_.adapter} connecting to {url}"
) )