diff --git a/functions/api/voice/token.ts b/functions/api/voice/token.ts index 7ba8c4e..605ea0e 100644 --- a/functions/api/voice/token.ts +++ b/functions/api/voice/token.ts @@ -9,7 +9,7 @@ export const onRequest: PagesFunction = async (context) => { const {headers} = response; const contentType = headers.get('content-type') || ''; if (contentType.includes('application/json')) { - return JSON.stringify(await response.json()); + return await response.text(); } else if (contentType.includes('application/text')) { return await response.text(); } else if (contentType.includes('text/html')) {