From 37f840a857c567dd11b978f292a5c0a7447f07ad Mon Sep 17 00:00:00 2001 From: Eric Kok Date: Mon, 20 Feb 2012 17:10:04 +0100 Subject: [PATCH] Preparing new release. --- android/AndroidManifest.xml | 4 ++-- lib/src/org/transdroid/daemon/Utorrent/UtorrentAdapter.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/android/AndroidManifest.xml b/android/AndroidManifest.xml index 945d2415..60427568 100644 --- a/android/AndroidManifest.xml +++ b/android/AndroidManifest.xml @@ -18,8 +18,8 @@ --> diff --git a/lib/src/org/transdroid/daemon/Utorrent/UtorrentAdapter.java b/lib/src/org/transdroid/daemon/Utorrent/UtorrentAdapter.java index 489597dd..39e5775e 100644 --- a/lib/src/org/transdroid/daemon/Utorrent/UtorrentAdapter.java +++ b/lib/src/org/transdroid/daemon/Utorrent/UtorrentAdapter.java @@ -281,7 +281,7 @@ public class UtorrentAdapter implements IDaemonAdapter { // Read JSON response InputStream instream = response.getEntity().getContent(); String result = HttpHelper.ConvertStreamToString(instream); - if ((result.equals("") || result.equals("invalid request\n"))) { + if ((result.equals("") || result.trim().equals("invalid request"))) { authtoken = null; throw new DaemonException(ExceptionType.AuthenticationFailure, "Response was '" + result.replace("\n", "") + "' instead of a proper JSON object (and we used auth token '" + authtoken + "')"); }