Browse Source

Preparing new release.

pull/11/head
Eric Kok 13 years ago
parent
commit
37f840a857
  1. 4
      android/AndroidManifest.xml
  2. 2
      lib/src/org/transdroid/daemon/Utorrent/UtorrentAdapter.java

4
android/AndroidManifest.xml

@ -18,8 +18,8 @@ @@ -18,8 +18,8 @@
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.transdroid"
android:versionName="1.1.12"
android:versionCode="142"
android:versionName="1.1.3"
android:versionCode="143"
android:installLocation="auto">
<uses-sdk android:minSdkVersion="4" android:targetSdkVersion="13" />

2
lib/src/org/transdroid/daemon/Utorrent/UtorrentAdapter.java

@ -281,7 +281,7 @@ public class UtorrentAdapter implements IDaemonAdapter { @@ -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 + "')");
}

Loading…
Cancel
Save