Skip to content

Commit f1dd961

Browse files
Update index.ts
1 parent bdb0d81 commit f1dd961

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

api/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ export default async (req: Request) => {
1212
const { text, ...options }: SsmlOptions & { text: string } = qs.parseUrl(req.url).query as any;
1313

1414
const res = await fetch(...postMicrosoftSpeech(text, options));
15+
16+
const newResponse = new Response(res.body, res);
1517

16-
return cors(req, res.clone());
18+
return cors(req, newResponse);
1719
};

0 commit comments

Comments
 (0)