Skip to content

Commit 9492a98

Browse files
fix: correct URI encoding order in API get method
1 parent 9c526a5 commit 9492a98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export const get = (req, RETRY = 1) => {
5757
headers: Contentstack.headers,
5858
hostname: Contentstack.host,
5959
method: Contentstack.verbs.get,
60-
path: encodeURI(sanitizeUrl(req.path)),
60+
path: sanitizeUrl(encodeURI(req.path)),
6161
port: Contentstack.port,
6262
protocol: Contentstack.protocol,
6363
}

0 commit comments

Comments
 (0)