Skip to content

Commit

Permalink
Removed logging.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikecao committed Jan 19, 2025
1 parent 936b7db commit 090abcf
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/pages/api/send.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,16 +86,6 @@ const schema = {
export default async (req: NextApiRequestCollect, res: NextApiResponse) => {
await useCors(req, res);

req.socket.on('close', () => {
console.log('Client closed connection');
});

const abortController = new AbortController();
req.on('close', () => {
console.log('Request closed');
abortController.abort();
});

if (req.method === 'POST') {
if (!process.env.DISABLE_BOT_CHECK && isbot(req.headers['user-agent'])) {
return ok(res, { beep: 'boop' });
Expand Down

0 comments on commit 090abcf

Please sign in to comment.