From 3abdc4ea0aaa7895c5ad08560648dd000263bbfc Mon Sep 17 00:00:00 2001 From: Pliable Pixels Date: Thu, 30 Apr 2020 08:59:52 -0400 Subject: #933 remove spaces, removed encodeURIComponent, add back encodeURI in cordova http --- www/js/app.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'www/js/app.js') 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; -- cgit v1.2.3