chore(Spoof streaming data): Increase byte array size

This commit is contained in:
inotia00 2025-01-16 12:18:29 +09:00
parent 7766b44268
commit 92b74e5a8c
2 changed files with 1 additions and 2 deletions

View File

@ -8,7 +8,6 @@ import app.revanced.extension.shared.requests.Route.CompiledRoute
import app.revanced.extension.shared.utils.Logger
import app.revanced.extension.shared.utils.Utils
import org.apache.commons.lang3.StringUtils
import org.json.JSONArray
import org.json.JSONException
import org.json.JSONObject
import java.io.IOException

View File

@ -275,7 +275,7 @@ class StreamingDataRequest private constructor(
} else {
BufferedInputStream(connection.inputStream).use { inputStream ->
ByteArrayOutputStream().use { stream ->
val buffer = ByteArray(2048)
val buffer = ByteArray(8192)
var bytesRead: Int
while ((inputStream.read(buffer)
.also { bytesRead = it }) >= 0