From 75c5d960aa592d7ef6fee7d2c361ea0ec8cf0a03 Mon Sep 17 00:00:00 2001 From: Jordan Shurmer Date: Mon, 11 May 2020 14:14:21 -0400 Subject: [PATCH] Decode path params --- lib/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils.js b/lib/utils.js index 3dcc774..9ed9664 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -40,7 +40,7 @@ const encodeBody = (body,serializer) => { exports.encodeBody = encodeBody exports.parsePath = path => { - return path ? path.trim().split('?')[0].replace(/^\/(.*?)(\/)*$/,'$1').split('/') : [] + return path ? path.trim().split('?')[0].replace(/^\/(.*?)(\/)*$/,'$1').split('/').map(str => decodeURIComponent(str)) : [] }