regex fix
This commit is contained in:
parent
b018d0f090
commit
45a341397b
3 changed files with 8 additions and 10 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue