Skip to content

Commit b057205

Browse files
committed
Use GitLabApiForm in post requests
1 parent a20807b commit b057205

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

gitlab4j-api/src/main/java/org/gitlab4j/api/RepositoryApi.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1167,7 +1167,7 @@ public void generateChangelog(Object projectIdOrPath, String version) throws Git
11671167
public void generateChangelog(Object projectIdOrPath, ChangelogPayload payload) throws GitLabApiException {
11681168
post(
11691169
Response.Status.OK,
1170-
payload.getFormData(),
1170+
new GitLabApiForm(payload.getFormData()),
11711171
"projects",
11721172
getProjectIdOrPath(projectIdOrPath),
11731173
"repository",

gitlab4j-api/src/main/java/org/gitlab4j/api/TopicsApi.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ public Optional<Topic> getOptionalTopic(Integer id) {
113113
* @throws GitLabApiException if any exception occurs
114114
*/
115115
public Topic createTopic(TopicParams params) throws GitLabApiException {
116-
Response response = post(Response.Status.CREATED, params.getForm(true), "topics");
116+
Response response = post(Response.Status.CREATED, new GitLabApiForm(params.getForm(true)), "topics");
117117
return (response.readEntity(Topic.class));
118118
}
119119

0 commit comments

Comments
 (0)