We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8aecdf6 commit cda7665Copy full SHA for cda7665
src/fetcher.ts
@@ -25,7 +25,7 @@ function queryString(params: Record<string, unknown>): string {
25
const qs: string[] = []
26
27
const encode = (key: string, value: unknown) =>
28
- `${encodeURIComponent(key)}=${encodeURIComponent(String(value))}`
+ `${encodeURI(key)}=${encodeURI(String(value))}`
29
30
Object.keys(params).forEach((key) => {
31
const value = params[key]
@@ -47,7 +47,7 @@ function queryString(params: Record<string, unknown>): string {
47
48
function getPath(path: string, payload: Record<string, any>) {
49
return path.replace(/\{([^}]+)\}/g, (_, key) => {
50
- const value = encodeURIComponent(payload[key])
+ const value = encodeURI(payload[key])
51
delete payload[key]
52
return value
53
})
0 commit comments