Skip to content

Commit 1f9055a

Browse files
istsergeygmessner
authored andcommitted
Fixed update file API response code. (#137)
1 parent 5cbf361 commit 1f9055a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ public RepositoryFile updateFile(RepositoryFile file, Integer projectId, String
121121
if (isApiVersion(ApiVersion.V3)) {
122122
response = put(Response.Status.OK, formData.asMap(), "projects", projectId, "repository", "files");
123123
} else {
124-
response = put(Response.Status.CREATED, formData.asMap(), "projects", projectId, "repository", "files", urlEncode(file.getFilePath()));
124+
response = put(Response.Status.OK, formData.asMap(), "projects", projectId, "repository", "files", urlEncode(file.getFilePath()));
125125
}
126126

127127
return (response.readEntity(RepositoryFile.class));

0 commit comments

Comments
 (0)