mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-19 05:07:27 +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 { extractBlueBubblesMessageId, resolveBlueBubblesSendTarget } from "./send-helpers.js";
|
||||||
import { resolveChatGuidForTarget } from "./send.js";
|
import { resolveChatGuidForTarget } from "./send.js";
|
||||||
import {
|
import {
|
||||||
|
blueBubblesFetchWithTimeout,
|
||||||
buildBlueBubblesApiUrl,
|
buildBlueBubblesApiUrl,
|
||||||
type BlueBubblesAttachment,
|
type BlueBubblesAttachment,
|
||||||
type BlueBubblesSendTarget,
|
type BlueBubblesSendTarget,
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ export async function postMultipartFormData(params: {
|
|||||||
parts: Uint8Array[];
|
parts: Uint8Array[];
|
||||||
timeoutMs: number;
|
timeoutMs: number;
|
||||||
}): Promise<Response> {
|
}): Promise<Response> {
|
||||||
const body = concatUint8Arrays(params.parts);
|
const body = Buffer.from(concatUint8Arrays(params.parts));
|
||||||
return await blueBubblesFetchWithTimeout(
|
return await blueBubblesFetchWithTimeout(
|
||||||
params.url,
|
params.url,
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user