From 8fe86030f7610bbae41be69cce02dda254c8a8cd Mon Sep 17 00:00:00 2001 From: Matt Godbolt Date: Tue, 15 Apr 2025 14:23:19 -0500 Subject: [PATCH] Address PR comments --- lib/handlers/api.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/handlers/api.ts b/lib/handlers/api.ts index bbfdf82d2..6dfbaee8b 100644 --- a/lib/handlers/api.ts +++ b/lib/handlers/api.ts @@ -43,8 +43,7 @@ import {StorageBase} from '../storage/index.js'; import {CompileHandler} from './compile.js'; function methodNotAllowed(req: express.Request, res: express.Response) { - res.send('Method Not Allowed'); - res.status(405).end(); + res.status(405).send('Method Not Allowed').end(); } export class ApiHandler {