Skip to content

Commit

Permalink
chore: update method call to set url
Browse files Browse the repository at this point in the history
  • Loading branch information
aanorbel committed Jun 13, 2024
1 parent 484bfc6 commit 241afab
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public OONICheckInResults checkIn(OONIContext ctx, OONICheckInConfig config) thr
public OONIRunDescriptor getLatestOONIRunLink(OONIContext ctx, String probeServicesURL, long id) throws Exception {
HTTPRequest request = new HTTPRequest();
request.setMethod("GET");
request.setURL(probeServicesURL + "/api/v2/oonirun/links/" + id);
request.setUrl(probeServicesURL + "/api/v2/oonirun/links/" + id);
String response = session.httpDo(ctx.ctx, request).getBody();
return new Gson().fromJson(response, OONIRunDescriptor.class);
}
Expand All @@ -49,7 +49,7 @@ public OONIRunDescriptor getLatestOONIRunLink(OONIContext ctx, String probeServi
public OONIRunRevisions getOONIRunLinkRevisions(OONIContext ooniContext, @NotNull String probeServicesURL, long runId) throws Exception {
HTTPRequest request = new HTTPRequest();
request.setMethod("GET");
request.setURL(probeServicesURL + "/api/v2/oonirun/links/" + runId + "/revisions");
request.setUrl(probeServicesURL + "/api/v2/oonirun/links/" + runId + "/revisions");
String response = session.httpDo(ooniContext.ctx, request).getBody();
OONIRunRevisions revisions = new Gson().fromJson(response, OONIRunRevisions.class);

Expand Down

0 comments on commit 241afab

Please sign in to comment.