Skip to content
This repository was archived by the owner on Sep 15, 2020. It is now read-only.

Commit ac6de96

Browse files
committed
Fix #7
1 parent 93ae681 commit ac6de96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/resources/template/gradle-kotlin-dsl/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ fun InputStream.transferTo1(out: OutputStream): Long {
9797
var transferred: Long = 0
9898
val buffer = ByteArray(8192)
9999
var read: Int
100-
while (this.read(buffer, 0, InputStream.DEFAULT_BUFFER_SIZE).also { read = it } >= 0) {
100+
while (this.read(buffer, 0, 8192).also { read = it } >= 0) {
101101
out.write(buffer, 0, read)
102102
transferred += read.toLong()
103103
}

0 commit comments

Comments
 (0)