mirror of
https://github.com/nonebot/nonebot2.git
synced 2024-11-27 18:45:05 +08:00
Update nonebot/drivers/fastapi.py
This commit is contained in:
parent
226fc0feb3
commit
aea961b346
@ -467,10 +467,10 @@ class FullDriver(ForwardDriver, Driver):
|
||||
continue
|
||||
|
||||
if not client:
|
||||
client = httpx.AsyncClient(http2=http2, follow_redirects=True)
|
||||
client = httpx.AsyncClient(http2=setup.http_version == "2", follow_redirects=True)
|
||||
elif http2 != (setup.http_version == "2"):
|
||||
await client.aclose()
|
||||
client = httpx.AsyncClient(http2=http2, follow_redirects=True)
|
||||
client = httpx.AsyncClient(http2=setup.http_version == "2", follow_redirects=True)
|
||||
http2 = setup.http_version == "2"
|
||||
|
||||
if not bot:
|
||||
|
Loading…
Reference in New Issue
Block a user