Skip to content

Commit

Permalink
# make sure that '' in param in considered null as well
Browse files Browse the repository at this point in the history
Signed-off-by: Theo Truong <[email protected]>
  • Loading branch information
nhtruong committed Nov 18, 2024
1 parent 67c3c38 commit 3502885
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 3502885

Please sign in to comment.