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)) : [] }