From 020d2a568776523f789e451589b875e6fa5fbed7 Mon Sep 17 00:00:00 2001 From: Jigsaw Date: Tue, 2 Apr 2024 10:03:46 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20Fix:=20=E5=B0=86=20aiohttp=20=E7=9A=84?= =?UTF-8?q?=20quote=5Ffields=20=E9=BB=98=E8=AE=A4=E8=AE=BE=E4=B8=BA=20Fals?= =?UTF-8?q?e=20(#2619)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nonebot/drivers/aiohttp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nonebot/drivers/aiohttp.py b/nonebot/drivers/aiohttp.py index 3a87691d3771..860b1ec232a6 100644 --- a/nonebot/drivers/aiohttp.py +++ b/nonebot/drivers/aiohttp.py @@ -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])