diff options
| author | Pliable Pixels <pliablepixels@gmail.com> | 2020-04-30 08:59:52 -0400 |
|---|---|---|
| committer | Pliable Pixels <pliablepixels@gmail.com> | 2020-04-30 08:59:52 -0400 |
| commit | 3abdc4ea0aaa7895c5ad08560648dd000263bbfc (patch) | |
| tree | 0615eedf057a3b60549d969ffe5a8d39c7eb7bfb /www/js/app.js | |
| parent | b3854d30ded71fb3793602106fb50f25ff2a7bb9 (diff) | |
#933 remove spaces, removed encodeURIComponent, add back encodeURI in cordova http
Diffstat (limited to 'www/js/app.js')
| -rwxr-xr-x | www/js/app.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/www/js/app.js b/www/js/app.js index ee04948f..45d8d02f 100755 --- a/www/js/app.js +++ b/www/js/app.js @@ -2098,10 +2098,10 @@ angular.module('zmApp', [ if (arguments[0].timeout) options.timeout = arguments[0].timeout; // console.log ("**** -->"+method+"<-- using native HTTP with:"+encodeURI(url)+" payload:"+JSON.stringify(options)); - // nvr.debug ("cordova: got url "+url); - // nvr.debug ("cordova: url after encode "+encodeURI(url)); + nvr.debug ("cordova: got url "+url); + nvr.debug ("cordova: url after encode "+encodeURI(url)); //cordova.plugin.http.sendRequest(encodeURI(url), options, - cordova.plugin.http.sendRequest(url, options, + cordova.plugin.http.sendRequest(encodeURI(url), options, function (succ) { // automatic JSON parse if no responseType: text // fall back to text if JSON parse fails too @@ -2142,7 +2142,7 @@ angular.module('zmApp', [ }, function (err) { - nvr.debug("*** Inside native HTTP error for url:"+err.url); + nvr.debug("*** Inside native HTTP error for url:"+JSON.stringify(url)); if (err.status == 401 && !options.skipIntercept && nvr.apiValid) { if (err.error && err.error.indexOf("API is disabled for user") != -1) { nvr.apiValid = false; |
