From 293015ff35894b3972d77843d66b299caa7239c1 Mon Sep 17 00:00:00 2001 From: Louis Lam Date: Sun, 9 Jul 2023 18:53:57 +0800 Subject: [PATCH] Parse `x-www-form-urlencoded` for /test-webhook --- server/server.js | 1 + 1 file changed, 1 insertion(+) diff --git a/server/server.js b/server/server.js index 976dca5de..c35af7fc1 100644 --- a/server/server.js +++ b/server/server.js @@ -208,6 +208,7 @@ let needSetup = false; }); if (isDev) { + app.use(express.urlencoded({ extended: true })); app.post("/test-webhook", async (request, response) => { log.debug("test", request.headers); log.debug("test", request.body);