diff --git a/package-lock.json b/package-lock.json index 8bad36a4..52b69bb2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "contentstack", - "version": "3.20.0", + "version": "3.20.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "contentstack", - "version": "3.20.0", + "version": "3.20.2", "license": "MIT", "dependencies": { "@contentstack/utils": "^1.3.8", diff --git a/package.json b/package.json index fbb60e05..1e8c59f3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "contentstack", - "version": "3.20.1", + "version": "3.20.2", "description": "Contentstack Javascript SDK", "homepage": "https://www.contentstack.com/", "author": { diff --git a/src/core/lib/request.js b/src/core/lib/request.js index ac77555d..367ad78b 100755 --- a/src/core/lib/request.js +++ b/src/core/lib/request.js @@ -109,7 +109,7 @@ function fetchRetry(stack, queryParams, fetchOptions, resolve, reject, retryDela } - fetch(request.url, request.option) + fetch(encodeURI(request.url), request.option) .then( function(response) { if (fetchOptions.debug) fetchOptions.logHandler('info', response);