Skip to content

Commit 92afc5f

Browse files
committed
Chaged response status to CREATED for addComment() (#67).
1 parent 7280af7 commit 92afc5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ public Comment addComment(int projectId, String sha, String note, String path, I
221221
.withParam("path", path)
222222
.withParam("line", line)
223223
.withParam("line_type", lineType);
224-
Response response = post(Response.Status.OK, formData, "projects", projectId, "repository", "commits", sha, "comments");
224+
Response response = post(Response.Status.CREATED, formData, "projects", projectId, "repository", "commits", sha, "comments");
225225
return (response.readEntity(Comment.class));
226226
}
227227
}

0 commit comments

Comments
 (0)