From 29e1deafc50e6ae7a8306e3914b9eebfbd1873a9 Mon Sep 17 00:00:00 2001 From: Michael Mainguy Date: Fri, 11 Aug 2023 06:30:41 -0500 Subject: [PATCH] changed to simple response. --- functions/api/voice/token.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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')) {