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
55809a2a
Commit
55809a2a
authored
Sep 26, 2018
by
Michal Hlavac
Committed by
Greg Messner
Sep 25, 2018
Browse files
fix #257 archive name in url for RepositoryApi.getRepositoryArchive (#258)
parent
6c9cf0f8
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/org/gitlab4j/api/RepositoryApi.java
View file @
55809a2a
...
...
@@ -473,7 +473,7 @@ public class RepositoryApi extends AbstractApi {
*/
Form
formData
=
new
GitLabApiForm
().
withParam
(
"sha"
,
sha
);
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
));
}
...
...
@@ -558,7 +558,7 @@ public class RepositoryApi extends AbstractApi {
*/
Form
formData
=
new
GitLabApiForm
().
withParam
(
"sha"
,
sha
);
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
{
...
...
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