Commit 8994a65d authored by Greg Messner's avatar Greg Messner
Browse files

Corrected response code on put() calls from CREATED to OK.

parent a5073f10
...@@ -371,7 +371,7 @@ public class NotesApi extends AbstractApi { ...@@ -371,7 +371,7 @@ public class NotesApi extends AbstractApi {
} }
GitLabApiForm formData = new GitLabApiForm().withParam("body", body, true); GitLabApiForm formData = new GitLabApiForm().withParam("body", body, true);
Response response = put(Response.Status.CREATED, formData.asMap(), Response response = put(Response.Status.OK, formData.asMap(),
"projects", projectId, "merge_requests", mergeRequestIid, "notes", noteId); "projects", projectId, "merge_requests", mergeRequestIid, "notes", noteId);
return (response.readEntity(Note.class)); return (response.readEntity(Note.class));
} }
......
...@@ -205,7 +205,7 @@ public class TagsApi extends AbstractApi { ...@@ -205,7 +205,7 @@ public class TagsApi extends AbstractApi {
*/ */
public Release updateRelease(Object projectIdOrPath, String tagName, String releaseNotes) throws GitLabApiException { public Release updateRelease(Object projectIdOrPath, String tagName, String releaseNotes) throws GitLabApiException {
Form formData = new GitLabApiForm().withParam("description", releaseNotes); Form formData = new GitLabApiForm().withParam("description", releaseNotes);
Response response = put(Response.Status.CREATED, formData.asMap(), Response response = put(Response.Status.OK, formData.asMap(),
"projects", getProjectIdOrPath(projectIdOrPath), "repository", "tags", tagName, "release"); "projects", getProjectIdOrPath(projectIdOrPath), "repository", "tags", tagName, "release");
return (response.readEntity(Release.class)); return (response.readEntity(Release.class));
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment