summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorParménides GV <parmegv@sdf.org>2013-07-30 19:48:46 +0200
committerSean Leonard <meanderingcode@aetherislands.net>2013-09-25 17:09:46 -0700
commit4ce663f2c8f4b5aa858b44a6e030f8c9ad15dae4 (patch)
treefb9c8f5bcb7fea2d15bdc469067a45620e2f9d65 /src
parent98348e2e3b6f02aafbe9756bdebbf27f66ab494f (diff)
Removed cookie to logout chain.
Diffstat (limited to 'src')
-rw-r--r--src/se/leap/leapclient/ProviderAPI.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/se/leap/leapclient/ProviderAPI.java b/src/se/leap/leapclient/ProviderAPI.java
index 645b5e29..db374b49 100644
--- a/src/se/leap/leapclient/ProviderAPI.java
+++ b/src/se/leap/leapclient/ProviderAPI.java
@@ -574,10 +574,8 @@ public class ProviderAPI extends IntentService {
*/
private boolean logOut(Bundle task) {
DefaultHttpClient client = LeapHttpClient.getInstance(getApplicationContext());
- int session_id_index = 0;
- //String delete_url = task.getString(ConfigHelper.srp_server_url_key) + "/sessions/" + client.getCookieStore().getCookies().get(0).getValue();
try {
- String delete_url = task.getString(ConfigHelper.API_URL_KEY) + "/logout" + "?authenticity_token=" + client.getCookieStore().getCookies().get(session_id_index).getValue();
+ String delete_url = task.getString(ConfigHelper.API_URL_KEY) + "/logout";
HttpDelete delete = new HttpDelete(delete_url);
HttpResponse getResponse = client.execute(delete);
HttpEntity responseEntity = getResponse.getEntity();