mirror of
https://github.com/rebelonion/Dantotsu.git
synced 2026-01-28 09:11:01 +00:00
regex fix
This commit is contained in:
@@ -85,10 +85,10 @@ query {
|
||||
return a
|
||||
}
|
||||
|
||||
fun decodeToString(res: NiceResponse?): String? {
|
||||
private fun decodeToString(res: NiceResponse?): String? {
|
||||
return when (res?.headers?.get("Content-Encoding")) {
|
||||
"gzip" -> {
|
||||
res.body.byteStream()?.use { inputStream ->
|
||||
res.body.byteStream().use { inputStream ->
|
||||
GZIPInputStream(inputStream).use { gzipInputStream ->
|
||||
InputStreamReader(gzipInputStream).use { reader ->
|
||||
reader.readText()
|
||||
|
||||
Reference in New Issue
Block a user