diff --git a/src/main/java/com/nutomic/syncthingandroid/syncthing/PostConfigTask.java b/src/main/java/com/nutomic/syncthingandroid/syncthing/PostConfigTask.java index 83f4d013..0c3a2b89 100644 --- a/src/main/java/com/nutomic/syncthingandroid/syncthing/PostConfigTask.java +++ b/src/main/java/com/nutomic/syncthingandroid/syncthing/PostConfigTask.java @@ -43,8 +43,8 @@ public class PostConfigTask extends AsyncTask { post.addHeader(new BasicHeader(RestApi.HEADER_API_KEY, params[1])); try { - post.setEntity(new StringEntity(params[3], HTTP.UTF_8)); - Log.v(TAG, "API call parameters: " + params[3]); + post.setEntity(new StringEntity(params[2], HTTP.UTF_8)); + Log.v(TAG, "API call parameters: " + params[2]); httpclient.execute(post); } catch (IOException|IllegalArgumentException e) { Log.w(TAG, "Failed to call Rest API at " + fullUri, e);