Skip to content

Commit

Permalink
#121: fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Jun 13, 2017
1 parent 307843f commit e40eeb8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/org/cactoos/io/TeeInputStream.java
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ public TeeInputStream(final InputStream src, final OutputStream tgt) {
@Override
public int read() throws IOException {
final int data = this.input.read();
this.output.write(data);
if (data >= 0) {
this.output.write(data);
}
return data;
}

Expand Down

0 comments on commit e40eeb8

Please sign in to comment.