From 899ec40bd7aa1e4e875344238021a8709bd7077a Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Fri, 3 Jan 2020 09:14:16 +0100 Subject: [PATCH] Fix check issue --- src/entities/RequestHandler.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/entities/RequestHandler.ts b/src/entities/RequestHandler.ts index 9ec4bbf..9948aef 100644 --- a/src/entities/RequestHandler.ts +++ b/src/entities/RequestHandler.ts @@ -104,7 +104,7 @@ export class RequestHandler { const param = this.getPostParam(name); if(param == undefined) { - if(!fallback) + if(fallback == undefined) this.error(400, "Missing integer '"+name+"' in the request!"); return fallback; }