Skip to content

Commit 3502885

Browse files
committed
# make sure that '' in param in considered null as well
Signed-off-by: Theo Truong <theotr@amazon.com>
1 parent 67c3c38 commit 3502885

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/utils.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const kConfigErr = Symbol('configuration error');
3535
function noop() {}
3636

3737
function parsePathParam(param) {
38-
if (param == null) return null;
38+
if (param == null || param === '') return null;
3939
return encodeURIComponent(param);
4040
}
4141

0 commit comments

Comments
 (0)