From 3502885b6b910adef035e3d853acdbc52edd2e17 Mon Sep 17 00:00:00 2001 From: Theo Truong Date: Mon, 18 Nov 2024 15:49:28 -0700 Subject: [PATCH] # make sure that '' in param in considered null as well Signed-off-by: Theo Truong --- api/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/utils.js b/api/utils.js index 16a79b93d..c049268e6 100644 --- a/api/utils.js +++ b/api/utils.js @@ -35,7 +35,7 @@ const kConfigErr = Symbol('configuration error'); function noop() {} function parsePathParam(param) { - if (param == null) return null; + if (param == null || param === '') return null; return encodeURIComponent(param); }