From 66cb3ed456e81ab03db6fefedd4f9839c6219cd4 Mon Sep 17 00:00:00 2001 From: Sebastien DUMETZ Date: Thu, 10 Nov 2022 15:34:31 +0100 Subject: [PATCH] fix a bad conditional that was preventing evaluation of If header tokens --- src/helper/v2/IfParser.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helper/v2/IfParser.ts b/src/helper/v2/IfParser.ts index 08ec8395..6f2a2823 100644 --- a/src/helper/v2/IfParser.ts +++ b/src/helper/v2/IfParser.ts @@ -82,7 +82,7 @@ function parseInternal(group : string) match = rex.exec(group); } - if(andArray.length) + if(andArray.length == 0) return (r, callback) => callback(null, true); return function(resource : Resource, callback : FnReturn) {