diff --git a/server/src/fetch/index.ts b/server/src/fetch/index.ts index 609ef882e..9a8bb3f56 100644 --- a/server/src/fetch/index.ts +++ b/server/src/fetch/index.ts @@ -135,7 +135,7 @@ export function createHeadersArray(headers: HeadersInit | undefined): [string, s */ export function createStringOrBufferBody(headers: [string, string][], body: any) { let contentType: string | undefined; - if (typeof body === 'object') { + if (typeof body === 'object' && !ArrayBuffer.isView(body)) { body = JSON.stringify(body); contentType = 'application/json'; }