Skip to content

Commit 9a3d1d8

Browse files
committed
encodeURI
1 parent c98dc8f commit 9a3d1d8

16 files changed

+1472
-1563
lines changed

dist/iclient-classic.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1821,6 +1821,7 @@ var FetchRequest = exports.FetchRequest = _SuperMap2.default.FetchRequest = {
18211821
},
18221822

18231823
_fetch: function _fetch(url, params, options, type) {
1824+
url = encodeURI(url);
18241825
options = options || {};
18251826
options.headers = options.headers || {};
18261827
if (!options.headers['Content-Type']) {
@@ -1849,6 +1850,7 @@ var FetchRequest = exports.FetchRequest = _SuperMap2.default.FetchRequest = {
18491850
},
18501851

18511852
_fetchJsonp: function _fetchJsonp(url, options) {
1853+
url = encodeURI(url);
18521854
options = options || {};
18531855
return (0, _fetchJsonp3.default)(url, { method: 'GET', timeout: options.timeout }).then(function (response) {
18541856
return response;

dist/iclient-classic.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)