Skip to content

Commit

Permalink
🐛 Fix: 将 aiohttp 的 quote_fields 默认设为 False (#2619)
Browse files Browse the repository at this point in the history
  • Loading branch information
j1g5awi authored Apr 2, 2024
1 parent 83d61fc commit 020d2a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nonebot/drivers/aiohttp.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ async def request(self, setup: Request) -> Response:

data = setup.data
if setup.files:
data = aiohttp.FormData(data or {})
data = aiohttp.FormData(data or {}, quote_fields=False)
for name, file in setup.files:
data.add_field(name, file[1], content_type=file[2], filename=file[0])

Expand Down

0 comments on commit 020d2a5

Please sign in to comment.