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
1f9055a2
Commit
1f9055a2
authored
Feb 05, 2018
by
Sergey Isterin
Committed by
Greg Messner
Feb 05, 2018
Browse files
Fixed update file API response code. (#137)
parent
5cbf361b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/org/gitlab4j/api/RepositoryFileApi.java
View file @
1f9055a2
...
...
@@ -121,7 +121,7 @@ public class RepositoryFileApi extends AbstractApi {
if
(
isApiVersion
(
ApiVersion
.
V3
))
{
response
=
put
(
Response
.
Status
.
OK
,
formData
.
asMap
(),
"projects"
,
projectId
,
"repository"
,
"files"
);
}
else
{
response
=
put
(
Response
.
Status
.
CREATED
,
formData
.
asMap
(),
"projects"
,
projectId
,
"repository"
,
"files"
,
urlEncode
(
file
.
getFilePath
()));
response
=
put
(
Response
.
Status
.
OK
,
formData
.
asMap
(),
"projects"
,
projectId
,
"repository"
,
"files"
,
urlEncode
(
file
.
getFilePath
()));
}
return
(
response
.
readEntity
(
RepositoryFile
.
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