[F] Fix allnet compression

pull/29/head
Azalea 2024-03-28 01:14:29 -04:00
parent 7fc4f83eb5
commit a55d503faa
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ object AllNetBillingDecoder {
*/
fun decode(src: ByteArray, base64: Boolean, nowrap: Boolean): Map<String, String> {
// Decode the input byte array from Base64 MIME encoding
val bytes = if (base64) src else Base64.getMimeDecoder().decode(src)
val bytes = if (!base64) src else Base64.getMimeDecoder().decode(src)
// Decompress the decoded byte array
val output = ZLib.decompress(bytes, nowrap).toString(UTF_8).trim()