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); }