Skip to content

Commit

Permalink
Fixed the chunking encoding error, that was preventing the download f…
Browse files Browse the repository at this point in the history
…rom working in some browsers. (#6505)
  • Loading branch information
landreev committed Jul 14, 2020
1 parent 7f2bf94 commit 2553845
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,5 +102,7 @@ private void dumpChunk(byte[] data, int offset, int length) throws IOException {
String chunkSizeLine = String.format(CHUNK_SIZE_FORMAT, length);
super.out.write(chunkSizeLine.getBytes());
super.out.write(data, offset, length);
// don't forget to close the chunk(!):
super.out.write(CHUNK_CLOSE);
}
}

0 comments on commit 2553845

Please sign in to comment.