From ad82d99dbeb70b5f40a920de40664b18e50fe3c9 Mon Sep 17 00:00:00 2001 From: Gauthier Roebroeck Date: Fri, 10 Jun 2022 21:31:51 +0800 Subject: [PATCH] fix: error when downloading book file over 2GB Closes: #897 --- .../org/gotson/komga/interfaces/api/rest/BookController.kt | 1 - 1 file changed, 1 deletion(-) diff --git a/komga/src/main/kotlin/org/gotson/komga/interfaces/api/rest/BookController.kt b/komga/src/main/kotlin/org/gotson/komga/interfaces/api/rest/BookController.kt index be738413..53220ede 100644 --- a/komga/src/main/kotlin/org/gotson/komga/interfaces/api/rest/BookController.kt +++ b/komga/src/main/kotlin/org/gotson/komga/interfaces/api/rest/BookController.kt @@ -391,7 +391,6 @@ class BookController( }, ) .contentType(getMediaTypeOrDefault(media.mediaType)) - .contentLength(this.contentLength()) .body(stream) } } catch (ex: FileNotFoundException) {