Commit 8d160022 authored by Tyler Rockwood's avatar Tyler Rockwood

Wrapping inputStream

parent 1c4df098
......@@ -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);
......
Markdown is supported
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