about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--org.fox.ttrss/src/main/java/org/fox/ttrss/ApiV2Client.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/org.fox.ttrss/src/main/java/org/fox/ttrss/ApiV2Client.java b/org.fox.ttrss/src/main/java/org/fox/ttrss/ApiV2Client.java
index e649a1ec..12163413 100644
--- a/org.fox.ttrss/src/main/java/org/fox/ttrss/ApiV2Client.java
+++ b/org.fox.ttrss/src/main/java/org/fox/ttrss/ApiV2Client.java
@@ -171,6 +171,12 @@ public class ApiV2Client {
 
             // Build query string
             if (queryParams != null && !queryParams.isEmpty()) {
+
+                // This uses different notation in V1 api so we can't remove those at the source just yet and keep
+                // compatibility, for now just drop them here (our route should be specified with URL path)
+                queryParams.remove("op");
+                queryParams.remove("method");
+
                 HttpUrl.Builder urlBuilder = HttpUrl.parse(fullUrl).newBuilder();
                 for (Map.Entry<String, String> entry : queryParams.entrySet()) {
                     urlBuilder.addQueryParameter(entry.getKey(), entry.getValue());