Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
佳 邓
Gitlab4j Api
Commits
085373d0
Commit
085373d0
authored
Jul 10, 2018
by
Kevin Urbainczyk
Committed by
Greg Messner
Jul 10, 2018
Browse files
Use status code 200 instead of 201. #221 (#222)
parent
60035381
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/org/gitlab4j/api/NotesApi.java
View file @
085373d0
...
@@ -176,7 +176,7 @@ public class NotesApi extends AbstractApi {
...
@@ -176,7 +176,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
(),
"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
));
return
(
response
.
readEntity
(
Note
.
class
));
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment