mirror of
https://github.com/Suwayomi/Tachidesk.git
synced 2025-12-10 06:42:07 +01:00
Fix server settings backup creation (#1806)
The "download conversions headers" caused a SerializationException. kotlinx.serialization.SerializationException: 'null' is not supported as the value of collection types in ProtoBuf
This commit is contained in:
@@ -12,10 +12,10 @@ import kotlin.time.Duration
|
||||
class BackupSettingsDownloadConversionType(
|
||||
@ProtoNumber(1) override val mimeType: String,
|
||||
@ProtoNumber(2) override val target: String,
|
||||
@ProtoNumber(3) override val compressionLevel: Double?,
|
||||
@ProtoNumber(4) override val callTimeout: Duration?,
|
||||
@ProtoNumber(5) override val connectTimeout: Duration?,
|
||||
@ProtoNumber(6) override val headers: List<BackupSettingsDownloadConversionHeaderType>?
|
||||
@ProtoNumber(3) override val compressionLevel: Double? = null,
|
||||
@ProtoNumber(4) override val callTimeout: Duration? = null,
|
||||
@ProtoNumber(5) override val connectTimeout: Duration? = null,
|
||||
@ProtoNumber(6) override val headers: List<BackupSettingsDownloadConversionHeaderType>? = null
|
||||
) : SettingsDownloadConversion
|
||||
|
||||
@OptIn(ExperimentalSerializationApi::class)
|
||||
|
||||
Reference in New Issue
Block a user