diff options
| -rw-r--r-- | org.fox.ttrss/src/main/java/org/fox/ttrss/ApiV2Client.java | 6 |
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 d424d98f..e649a1ec 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 @@ -181,6 +181,12 @@ public class ApiV2Client { // Build request body (for POST/PATCH/DELETE with body params) RequestBody requestBody = null; if (bodyParams != null && !bodyParams.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) + bodyParams.remove("op"); + bodyParams.remove("method"); + // Use form-encoded body for v2 API FormBody.Builder formBuilder = new FormBody.Builder(); for (Map.Entry<String, String> entry : bodyParams.entrySet()) { |
