Commit c1473753 authored by Greg Messner's avatar Greg Messner
Browse files

Fixed createFile() for V3 API (#82).

parent a65eeeaa
......@@ -89,7 +89,7 @@ public class RepositoryFileApi extends AbstractApi {
Form formData = file2form(file, branchName, commitMessage);
Response response;
if (isApiVersion(ApiVersion.V3)) {
response = post(Response.Status.OK, formData, "projects", projectId, "repository", "files");
response = post(Response.Status.CREATED, formData, "projects", projectId, "repository", "files");
} else {
response = post(Response.Status.CREATED, formData, "projects", projectId, "repository", "files", urlEncode(file.getFilePath()));
}
......
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