Skip to content

Commit 13210df

Browse files
authored
Fix Compression (#86)
1 parent 1e11d58 commit 13210df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/src/main/java/org/cssnr/zipline/api/ServerApi.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ class ServerApi(private val context: Context, url: String? = null) {
153153
part,
154154
format,
155155
originalName,
156-
uploadOptions.compression,
156+
uploadOptions.compression?.takeIf { it != 0 },
157157
uploadOptions.deletesAt,
158158
uploadOptions.folderId,
159159
uploadOptions.password,
@@ -603,7 +603,7 @@ class ServerApi(private val context: Context, url: String? = null) {
603603
@Part file: MultipartBody.Part,
604604
@Header("x-zipline-format") format: String,
605605
@Header("x-zipline-original-name") originalName: Boolean = true,
606-
@Header("x-zipline-image-compression-percent") compression: Int? = 100,
606+
@Header("x-zipline-image-compression-percent") compression: Int? = null,
607607
@Header("x-zipline-deletes-at") deletesAt: String? = null,
608608
@Header("x-zipline-folder") folder: String? = null,
609609
@Header("x-zipline-password") password: String? = null,

0 commit comments

Comments
 (0)