mirror of
https://github.com/nonebot/nonebot2.git
synced 2024-11-24 00:55:07 +08:00
🐛 Fix: 将 aiohttp 的 quote_fields 默认设为 False (#2619)
This commit is contained in:
parent
83d61fcffd
commit
020d2a5687
@ -60,7 +60,7 @@ class Mixin(HTTPClientMixin, WebSocketClientMixin):
|
||||
|
||||
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])
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user