src/main/scala/s3/website/model/push.scala in s3_website-2.14.2 vs src/main/scala/s3/website/model/push.scala in s3_website-2.14.3
- old
+ new
@@ -63,10 +63,10 @@
lazy val gzipEnabledByConfig: Boolean = encodingOnS3.fold(false)((algorithm: Either[Gzip, Zopfli]) => true)
lazy val contentType: Try[String] = tika map { tika =>
val file = // This file contains the data that the user should see after decoding the the transport protocol (HTTP) encoding (practically: after ungzipping)
if (fileIsGzippedByExternalBuildTool) {
- val unzippedFile = createTempFile(originalFile.getName, "unzipped")
+ val unzippedFile = createTempFile("unzipped", originalFile.getName)
unzippedFile.deleteOnExit()
using(new GZIPInputStream(fis(originalFile))) { stream =>
IOUtils.copy(stream, new FileOutputStream(unzippedFile))
}
unzippedFile