Commit 55809a2a authored by Michal Hlavac's avatar Michal Hlavac Committed by Greg Messner
Browse files

fix #257 archive name in url for RepositoryApi.getRepositoryArchive (#258)

parent 6c9cf0f8
...@@ -473,7 +473,7 @@ public class RepositoryApi extends AbstractApi { ...@@ -473,7 +473,7 @@ public class RepositoryApi extends AbstractApi {
*/ */
Form formData = new GitLabApiForm().withParam("sha", sha); Form formData = new GitLabApiForm().withParam("sha", sha);
Response response = getWithAccepts(Response.Status.OK, formData.asMap(), MediaType.MEDIA_TYPE_WILDCARD, Response response = getWithAccepts(Response.Status.OK, formData.asMap(), MediaType.MEDIA_TYPE_WILDCARD,
"projects", projectId, "repository", "archive", ".", format.toString()); "projects", projectId, "repository", "archive" + "." + format.toString());
return (response.readEntity(InputStream.class)); return (response.readEntity(InputStream.class));
} }
...@@ -558,7 +558,7 @@ public class RepositoryApi extends AbstractApi { ...@@ -558,7 +558,7 @@ public class RepositoryApi extends AbstractApi {
*/ */
Form formData = new GitLabApiForm().withParam("sha", sha); Form formData = new GitLabApiForm().withParam("sha", sha);
Response response = getWithAccepts(Response.Status.OK, formData.asMap(), MediaType.MEDIA_TYPE_WILDCARD, Response response = getWithAccepts(Response.Status.OK, formData.asMap(), MediaType.MEDIA_TYPE_WILDCARD,
"projects", projectId, "repository", "archive", ".", format.toString()); "projects", projectId, "repository", "archive" + "." + format.toString());
try { try {
......
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