diff --git a/src/main/java/com/nutomic/syncthingandroid/syncthing/GetTask.java b/src/main/java/com/nutomic/syncthingandroid/syncthing/GetTask.java index e97d1a16..0e7e185b 100644 --- a/src/main/java/com/nutomic/syncthingandroid/syncthing/GetTask.java +++ b/src/main/java/com/nutomic/syncthingandroid/syncthing/GetTask.java @@ -50,7 +50,7 @@ public class GetTask extends AsyncTask { HttpClient httpclient = new DefaultHttpClient(); if (params.length == 5) { LinkedList urlParams = new LinkedList(); - urlParams.add(new BasicNameValuePair(params[2], params[3])); + urlParams.add(new BasicNameValuePair(params[3], params[4])); fullUri += "?" + URLEncodedUtils.format(urlParams, "utf-8"); } HttpGet get = new HttpGet(fullUri);