From 37ba6156d9a77146ad7b9e7a561aafb9aac5c561 Mon Sep 17 00:00:00 2001 From: Kevin Urbainczyk Date: Tue, 10 Jul 2018 11:27:52 +0200 Subject: [PATCH] Use status code 200 instead of 201. #221 The GitLab API returns 200 in the case of an update. --- src/main/java/org/gitlab4j/api/NotesApi.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/gitlab4j/api/NotesApi.java b/src/main/java/org/gitlab4j/api/NotesApi.java index 27f4d4254..13719551f 100644 --- a/src/main/java/org/gitlab4j/api/NotesApi.java +++ b/src/main/java/org/gitlab4j/api/NotesApi.java @@ -176,7 +176,7 @@ public Note updateIssueNote(Integer projectId, Integer issueIid, Integer noteId, } GitLabApiForm formData = new GitLabApiForm().withParam("body", body, true); - Response response = put(Response.Status.CREATED, formData.asMap(), "projects", projectId, "issues", issueIid, "notes", noteId); + Response response = put(Response.Status.OK, formData.asMap(), "projects", projectId, "issues", issueIid, "notes", noteId); return (response.readEntity(Note.class)); }