Skip to content

Commit c3d3a17

Browse files
authored
Don't use query param for the POST requests (#1199)
1 parent 3f46178 commit c3d3a17

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

Diff for: src/main/java/org/gitlab4j/api/EpicsApi.java

+2-4
Original file line numberDiff line numberDiff line change
@@ -332,8 +332,7 @@ public Epic createEpic(
332332
.withParam("start_date", startDate)
333333
.withParam("end_date", endDate)
334334
.withParam("created_at", createdAt);
335-
Response response =
336-
post(Response.Status.CREATED, formData.asMap(), "groups", getGroupIdOrPath(groupIdOrPath), "epics");
335+
Response response = post(Response.Status.CREATED, formData, "groups", getGroupIdOrPath(groupIdOrPath), "epics");
337336
return (response.readEntity(Epic.class));
338337
}
339338

@@ -363,8 +362,7 @@ public Epic createEpic(Object groupIdOrPath, Epic epic) throws GitLabApiExceptio
363362
.withParam("start_date", epic.getStartDate())
364363
.withParam("end_date", epic.getEndDate())
365364
.withParam("created_at", epic.getCreatedAt());
366-
Response response =
367-
post(Response.Status.CREATED, formData.asMap(), "groups", getGroupIdOrPath(groupIdOrPath), "epics");
365+
Response response = post(Response.Status.CREATED, formData, "groups", getGroupIdOrPath(groupIdOrPath), "epics");
368366
return (response.readEntity(Epic.class));
369367
}
370368

Diff for: src/main/java/org/gitlab4j/api/RunnersApi.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ public RunnerDetail registerRunner(
530530
.withParam("run_untagged", runUntagged, false)
531531
.withParam("tag_list", tagList, false)
532532
.withParam("maximum_timeout", maximumTimeout, false);
533-
Response response = post(Response.Status.CREATED, formData.asMap(), "runners");
533+
Response response = post(Response.Status.CREATED, formData, "runners");
534534
return (response.readEntity(RunnerDetail.class));
535535
}
536536

0 commit comments

Comments
 (0)