From c43c07e1d89d9c324a84683be55d1634445f2a21 Mon Sep 17 00:00:00 2001 From: Thomas Roch Date: Sun, 29 Dec 2019 22:45:50 +0100 Subject: [PATCH] fix: Revert encoding fix --- src/Path.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Path.ts b/src/Path.ts index a34c0fc..99b2d48 100644 --- a/src/Path.ts +++ b/src/Path.ts @@ -33,7 +33,7 @@ const upToDelimiter = (source: string, delimiter?: boolean) => { const encodeSpatParam = (value: string) => value .split('/') - .map(encodeURIComponent) + .map(encodeURI) .join('/') const appendQueryParam = ( @@ -204,7 +204,7 @@ export class Path { ? identity : this.isSpatParam(key) ? encodeSpatParam - : encodeURIComponent + : encodeURI if (typeof val === 'boolean') { acc[key] = val