Skip to content

Commit

Permalink
Update index.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
canisminor1990 authored Nov 3, 2023
1 parent 68a81b3 commit bdb0d81
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@ export default async (req: Request) => {
const { text, ...options }: SsmlOptions & { text: string } = qs.parseUrl(req.url).query as any;

const res = await fetch(...postMicrosoftSpeech(text, options));

const headers = new Headers(res.headers);

res.headers = headers;

return cors(req, res);
return cors(req, res.clone());
};

0 comments on commit bdb0d81

Please sign in to comment.