!str #19129 New homes for file and java.io stream factories

This commit is contained in:
Johan Andrén 2015-12-08 18:47:58 +01:00
parent 5041d3825d
commit 09a79f45e4
31 changed files with 420 additions and 327 deletions

View file

@ -197,7 +197,7 @@ object HttpEntity {
val fileLength = file.length
if (fileLength > 0)
Default(contentType, fileLength,
if (chunkSize > 0) Source.file(file, chunkSize) else Source.file(file))
if (chunkSize > 0) FileIO.fromFile(file, chunkSize) else FileIO.fromFile(file))
else empty(contentType)
}