Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
佳 邓
Gitlab4j Api
Commits
a00b1f09
Unverified
Commit
a00b1f09
authored
2 years ago
by
twarner-sofi
Committed by
GitHub
2 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Support X-Gitlab-Content-Sha256 header (#904)
parent
73f200a8
main
6.x
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/org/gitlab4j/api/RepositoryFileApi.java
+2
-1
src/main/java/org/gitlab4j/api/RepositoryFileApi.java
with
2 additions
and
1 deletion
+2
-1
src/main/java/org/gitlab4j/api/RepositoryFileApi.java
+
2
-
1
View file @
a00b1f09
...
...
@@ -71,6 +71,7 @@ public class RepositoryFileApi extends AbstractApi {
RepositoryFile
file
=
new
RepositoryFile
();
file
.
setBlobId
(
response
.
getHeaderString
(
"X-Gitlab-Blob-Id"
));
file
.
setCommitId
(
response
.
getHeaderString
(
"X-Gitlab-Commit-Id"
));
file
.
setContentSha256
(
response
.
getHeaderString
(
"X-Gitlab-Content-Sha256"
));
String
encoding
=
response
.
getHeaderString
(
"X-Gitlab-Encoding"
);
file
.
setEncoding
(
Constants
.
Encoding
.
forValue
(
encoding
));
...
...
@@ -515,4 +516,4 @@ public class RepositoryFileApi extends AbstractApi {
public
Stream
<
Blame
>
getBlameStream
(
Object
projectIdOrPath
,
String
filePath
,
String
ref
)
throws
GitLabApiException
{
return
(
getBlame
(
projectIdOrPath
,
filePath
,
ref
,
getDefaultPerPage
()).
stream
());
}
}
\ No newline at end of file
}
This diff is collapsed.
Click to expand it.
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
Menu
Explore
Projects
Groups
Snippets