Skip to content

Commit a273f67

Browse files
fouadhgmessner
authored andcommitted
No correctly uses POST instead of GET to enable a runner (#173)
1 parent 48fa1ad commit a273f67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/gitlab4j/api/RunnersApi.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ public Runner enableRunner(Integer projectId, Integer runnerId) throws GitLabApi
324324
}
325325
GitLabApiForm formData = new GitLabApiForm()
326326
.withParam("runner_id", runnerId, true);
327-
Response response = get(Response.Status.OK, formData.asMap(), "projects", projectId, "runners");
327+
Response response = post(Response.Status.CREATED, formData.asMap(), "projects", projectId, "runners");
328328
return (response.readEntity(Runner.class));
329329
}
330330

0 commit comments

Comments
 (0)