fix(bluebubbles): use Buffer for multipart body

This commit is contained in:
Peter Steinberger
2026-02-15 19:25:11 +00:00
parent 719280d737
commit 88548784ce
2 changed files with 2 additions and 1 deletions

View File

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

View File

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