mirror of
https://github.com/nonebot/nonebot2.git
synced 2024-11-28 05:59:10 +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
|
data = setup.data
|
||||||
if setup.files:
|
if setup.files:
|
||||||
data = aiohttp.FormData(data or {})
|
data = aiohttp.FormData(data or {}, quote_fields=False)
|
||||||
for name, file in setup.files:
|
for name, file in setup.files:
|
||||||
data.add_field(name, file[1], content_type=file[2], filename=file[0])
|
data.add_field(name, file[1], content_type=file[2], filename=file[0])
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user