From ed93b7567817f5651b6abdf40af617c3e5d09079 Mon Sep 17 00:00:00 2001 From: petersirka Date: Mon, 28 Oct 2024 21:09:09 +0100 Subject: [PATCH] Fixed variable name. --- controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controller.js b/controller.js index 0d40c12..2515af4 100644 --- a/controller.js +++ b/controller.js @@ -1030,7 +1030,7 @@ Controller.prototype.$route = function() { switch (ctrl.datatype) { case 'json': val = ctrl.payload.toString('utf8'); - ctrl.body = val ? F.def.parsers.json(body) : null; + ctrl.body = val ? F.def.parsers.json(val) : null; break; case 'urlencoded': val = ctrl.payload.toString('utf8');