mirror of https://github.com/openclaw/openclaw.git
fix(bluebubbles): use Buffer for multipart body
This commit is contained in:
parent
719280d737
commit
88548784ce
|
|
@ -7,6 +7,7 @@ import { getCachedBlueBubblesPrivateApiStatus } from "./probe.js";
|
|||
import { extractBlueBubblesMessageId, resolveBlueBubblesSendTarget } from "./send-helpers.js";
|
||||
import { resolveChatGuidForTarget } from "./send.js";
|
||||
import {
|
||||
blueBubblesFetchWithTimeout,
|
||||
buildBlueBubblesApiUrl,
|
||||
type BlueBubblesAttachment,
|
||||
type BlueBubblesSendTarget,
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ export async function postMultipartFormData(params: {
|
|||
parts: Uint8Array[];
|
||||
timeoutMs: number;
|
||||
}): Promise<Response> {
|
||||
const body = concatUint8Arrays(params.parts);
|
||||
const body = Buffer.from(concatUint8Arrays(params.parts));
|
||||
return await blueBubblesFetchWithTimeout(
|
||||
params.url,
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue