mirror of
https://github.com/inotia00/revanced-patches.git
synced 2025-05-07 18:14:36 +02:00
chore(Spoof streaming data): Increase byte array size
This commit is contained in:
parent
7766b44268
commit
92b74e5a8c
@ -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.Logger
|
||||||
import app.revanced.extension.shared.utils.Utils
|
import app.revanced.extension.shared.utils.Utils
|
||||||
import org.apache.commons.lang3.StringUtils
|
import org.apache.commons.lang3.StringUtils
|
||||||
import org.json.JSONArray
|
|
||||||
import org.json.JSONException
|
import org.json.JSONException
|
||||||
import org.json.JSONObject
|
import org.json.JSONObject
|
||||||
import java.io.IOException
|
import java.io.IOException
|
||||||
|
@ -275,7 +275,7 @@ class StreamingDataRequest private constructor(
|
|||||||
} else {
|
} else {
|
||||||
BufferedInputStream(connection.inputStream).use { inputStream ->
|
BufferedInputStream(connection.inputStream).use { inputStream ->
|
||||||
ByteArrayOutputStream().use { stream ->
|
ByteArrayOutputStream().use { stream ->
|
||||||
val buffer = ByteArray(2048)
|
val buffer = ByteArray(8192)
|
||||||
var bytesRead: Int
|
var bytesRead: Int
|
||||||
while ((inputStream.read(buffer)
|
while ((inputStream.read(buffer)
|
||||||
.also { bytesRead = it }) >= 0
|
.also { bytesRead = it }) >= 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user