We are doing HTTP POST calls with no data in TokenRefresh
widget, which is time-consuming and can lead to crashes
with libmicrohttpd > 0.9.30. Use HTTP GETs instead.
Signed-off-by: Manuel Bachmann <manuel.bachmann@iot.bzh>
config.$inject = ['$urlRouterProvider', '$locationProvider'];
config.$inject = ['$urlRouterProvider', '$locationProvider'];
- console.log ("***location=" + window.location + " search" + window.search)
+ console.log ("***location=" + window.location + " search" + window.search);
function config($urlProvider, $locationProvider, ConfigApp) {
$urlProvider.otherwise('/home');
function config($urlProvider, $locationProvider, ConfigApp) {
$urlProvider.otherwise('/home');
// Check Binder status
scope.getping = function() {
// Check Binder status
scope.getping = function() {
- var handler = $http.post(ConfigApp.session.ping+'?token='+ ConfigApp.session.token);
+ var handler = $http.get(ConfigApp.session.ping+'?token='+ ConfigApp.session.token);
// process success and error
handler.success(scope.onsuccess);
// process success and error
handler.success(scope.onsuccess);
// Check Binder status
scope.refresh = function() {
// Check Binder status
scope.refresh = function() {
- var handler = $http.post(ConfigApp.session.refresh+'?token='+ ConfigApp.session.token);
+ var handler = $http.get(ConfigApp.session.refresh+'?token='+ ConfigApp.session.token);
// process success and error
handler.success(scope.onsuccess);
// process success and error
handler.success(scope.onsuccess);
// Initial connection
scope.tkcreate = function() {
// Initial connection
scope.tkcreate = function() {
- var handler = $http.post(ConfigApp.session.create+'?token='+ ConfigApp.session.initial);
+ var handler = $http.get(ConfigApp.session.create+'?token='+ ConfigApp.session.initial);
// process success and error
handler.success(scope.onsuccess);
// process success and error
handler.success(scope.onsuccess);