From 241afab1c60fcfe7bb1eb24132a2528ae61836ef Mon Sep 17 00:00:00 2001 From: Norbel AMBANUMBEN Date: Thu, 13 Jun 2024 18:22:42 +0100 Subject: [PATCH] chore: update method call to set url --- .../src/main/java/org/openobservatory/engine/PESession.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/src/main/java/org/openobservatory/engine/PESession.java b/engine/src/main/java/org/openobservatory/engine/PESession.java index 3fe4431c3..54b6391ee 100644 --- a/engine/src/main/java/org/openobservatory/engine/PESession.java +++ b/engine/src/main/java/org/openobservatory/engine/PESession.java @@ -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); } @@ -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);