Skip to content

Commit 8994a65

Browse files
committed
Corrected response code on put() calls from CREATED to OK.
1 parent a5073f1 commit 8994a65

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ public Note updateMergeRequestNote(Integer projectId, Integer mergeRequestIid, I
371371
}
372372

373373
GitLabApiForm formData = new GitLabApiForm().withParam("body", body, true);
374-
Response response = put(Response.Status.CREATED, formData.asMap(),
374+
Response response = put(Response.Status.OK, formData.asMap(),
375375
"projects", projectId, "merge_requests", mergeRequestIid, "notes", noteId);
376376
return (response.readEntity(Note.class));
377377
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ public Release createRelease(Object projectIdOrPath, String tagName, String rele
205205
*/
206206
public Release updateRelease(Object projectIdOrPath, String tagName, String releaseNotes) throws GitLabApiException {
207207
Form formData = new GitLabApiForm().withParam("description", releaseNotes);
208-
Response response = put(Response.Status.CREATED, formData.asMap(),
208+
Response response = put(Response.Status.OK, formData.asMap(),
209209
"projects", getProjectIdOrPath(projectIdOrPath), "repository", "tags", tagName, "release");
210210
return (response.readEntity(Release.class));
211211
}

0 commit comments

Comments
 (0)