From 3af8b55985b4c0c79dc4300c56876a7af95d0b94 Mon Sep 17 00:00:00 2001 From: Mix <32300164+mnixry@users.noreply.github.com> Date: Wed, 7 Jul 2021 20:39:46 +0800 Subject: [PATCH] :bug: fix access denied for mirai adapter upload related action --- packages/nonebot-adapter-mirai/nonebot/adapters/mirai/bot.py | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/nonebot-adapter-mirai/nonebot/adapters/mirai/bot.py b/packages/nonebot-adapter-mirai/nonebot/adapters/mirai/bot.py index ebce2d74..a967025c 100644 --- a/packages/nonebot-adapter-mirai/nonebot/adapters/mirai/bot.py +++ b/packages/nonebot-adapter-mirai/nonebot/adapters/mirai/bot.py @@ -95,6 +95,7 @@ class SessionManager: """ files = {k: v for k, v in params.items() if isinstance(v, BytesIO)} form = {k: v for k, v in params.items() if k not in files} + form['sessionKey'] = self.session_key response = await self.client.post( path, data=form,