Skip to content

Commit 99acf59

Browse files
committed
consistent 'method not allowed' error
1 parent bfe938e commit 99acf59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/pgbb.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ async function api_wake({ wakers, url }) {
491491

492492
async function serve_static({ req, url }) {
493493
if (req.method != 'GET') {
494-
return Response.json('method not allowed', { status: 405 });
494+
return Response.json({ error: 'method not allowed' }, { status: 405 });
495495
}
496496

497497
// TODO etag

0 commit comments

Comments
 (0)