🐛 Fix: 将 aiohttp 的 quote_fields 默认设为 False (#2619)

This commit is contained in:
Jigsaw 2024-04-02 10:03:46 +08:00 committed by GitHub
parent 83d61fcffd
commit 020d2a5687
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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])