mirror of
https://github.com/openclaw/openclaw.git
synced 2026-02-17 23:57:32 +00:00
fix(bluebubbles): use Buffer for multipart body
This commit is contained in:
@@ -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,
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user