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)

parent 48fa1ad5
......@@ -324,7 +324,7 @@ public class RunnersApi extends AbstractApi {
}
GitLabApiForm formData = new GitLabApiForm()
.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));
}
......
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