Skip to content

Commit

Permalink
format=json already as parameter
Browse files Browse the repository at this point in the history
Signed-off-by: tobiasKaminsky <[email protected]>
  • Loading branch information
tobiasKaminsky committed Nov 25, 2022
1 parent af594b6 commit 49ffed4
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
import org.apache.commons.httpclient.HttpStatus;

import java.lang.reflect.Type;
import java.util.HashMap;
import java.util.List;

/**
Expand Down Expand Up @@ -76,10 +75,7 @@ public RemoteOperationResult<List<Notification>> run(NextcloudClient client) {
// get the notifications
try {
get = new GetMethod(url, true);
HashMap<String, String> map = new HashMap<>();
map.put("format", "json");

get.setQueryString(map);
status = client.execute(get);

String response = get.getResponseBodyAsString();
Expand Down

0 comments on commit 49ffed4

Please sign in to comment.