wtf fix int wrong stupid

This commit is contained in:
CrescentLeaf
2025-11-29 01:21:56 +08:00
parent 1e213ddbc4
commit 3bd0d79fdc

View File

@@ -89,7 +89,7 @@ class ChatAttachment extends BaseClientObject {
if (re.ok) { if (re.ok) {
const t = re.headers.get('content-type') const t = re.headers.get('content-type')
if (t) if (t)
return parseInt(t) return t
throw new Error("Unable to get Content-Type") throw new Error("Unable to get Content-Type")
} }
throw new CallbackError({ throw new CallbackError({