From fe92325853b716262368ea16b96c118849b11369 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Mon, 27 Jan 2014 23:51:03 +0100 Subject: [PATCH] Use POST instead of GET request to synchronise groups --- inc/myco_objects.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/inc/myco_objects.js b/inc/myco_objects.js index 3a37026..8fa9609 100644 --- a/inc/myco_objects.js +++ b/inc/myco_objects.js @@ -404,7 +404,7 @@ function SyncServer() { this.email=email; this.password=password; try { - jQuery.getJSON( + jQuery.post( this.url+'/sync', { 'email':email, @@ -421,7 +421,8 @@ function SyncServer() { } } onerror(data); - } + }, + 'json' ).fail(onerror); } catch(e) {