Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
java-gitlab-api
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
沈俊林
java-gitlab-api
Commits
8d160022
Commit
8d160022
authored
Mar 11, 2016
by
Tyler Rockwood
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Wrapping inputStream
parent
1c4df098
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
GitlabHTTPRequestor.java
src/main/java/org/gitlab/api/http/GitlabHTTPRequestor.java
+1
-1
No files found.
src/main/java/org/gitlab/api/http/GitlabHTTPRequestor.java
View file @
8d160022
...
...
@@ -322,7 +322,7 @@ public class GitlabHTTPRequestor {
InputStreamReader
reader
=
null
;
try
{
if
(
byte
[].
class
==
type
)
{
return
type
.
cast
(
IOUtils
.
toByteArray
(
connection
.
getInputStream
(
)));
return
type
.
cast
(
IOUtils
.
toByteArray
(
wrapStream
(
connection
,
connection
.
getInputStream
()
)));
}
reader
=
new
InputStreamReader
(
wrapStream
(
connection
,
connection
.
getInputStream
()),
"UTF-8"
);
String
data
=
IOUtils
.
toString
(
reader
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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