Skip to content

Commit

Permalink
fix: Revert encoding fix
Browse files Browse the repository at this point in the history
  • Loading branch information
troch committed Dec 29, 2019
1 parent 1fe44b4 commit c43c07e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Path.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const upToDelimiter = (source: string, delimiter?: boolean) => {
const encodeSpatParam = (value: string) =>
value
.split('/')
.map(encodeURIComponent)
.map(encodeURI)
.join('/')

const appendQueryParam = (
Expand Down Expand Up @@ -204,7 +204,7 @@ export class Path {
? identity
: this.isSpatParam(key)
? encodeSpatParam
: encodeURIComponent
: encodeURI

if (typeof val === 'boolean') {
acc[key] = val
Expand Down

0 comments on commit c43c07e

Please sign in to comment.