Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
佳 邓
Gitlab4j Api
Commits
a273f674
Commit
a273f674
authored
Apr 14, 2018
by
Fouad
Committed by
Greg Messner
Apr 14, 2018
Browse files
No correctly uses POST instead of GET to enable a runner (#173)
parent
48fa1ad5
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/org/gitlab4j/api/RunnersApi.java
View file @
a273f674
...
...
@@ -324,7 +324,7 @@ public class RunnersApi extends AbstractApi {
}
GitLabApiForm
formData
=
new
GitLabApiForm
()
.
withParam
(
"runner_id"
,
runnerId
,
true
);
Response
response
=
ge
t
(
Response
.
Status
.
OK
,
formData
.
asMap
(),
"projects"
,
projectId
,
"runners"
);
Response
response
=
pos
t
(
Response
.
Status
.
CREATED
,
formData
.
asMap
(),
"projects"
,
projectId
,
"runners"
);
return
(
response
.
readEntity
(
Runner
.
class
));
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment