🐛 fix access denied for mirai adapter upload related action

This commit is contained in:
Mix 2021-07-07 20:39:46 +08:00 committed by GitHub
parent 276d09bb54
commit 3af8b55985
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,