Commit a273f674 authored by Fouad's avatar Fouad Committed by Greg Messner
Browse files

No correctly uses POST instead of GET to enable a runner (#173)

No related merge requests found
Showing with 1 addition and 1 deletion
+1 -1
...@@ -324,7 +324,7 @@ public class RunnersApi extends AbstractApi { ...@@ -324,7 +324,7 @@ public class RunnersApi extends AbstractApi {
} }
GitLabApiForm formData = new GitLabApiForm() GitLabApiForm formData = new GitLabApiForm()
.withParam("runner_id", runnerId, true); .withParam("runner_id", runnerId, true);
Response response = get(Response.Status.OK, formData.asMap(), "projects", projectId, "runners"); Response response = post(Response.Status.CREATED, formData.asMap(), "projects", projectId, "runners");
return (response.readEntity(Runner.class)); return (response.readEntity(Runner.class));
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment