mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2026-07-31 07:44:24 +02:00
Only apply HTML cleaning when response has Content-Type=text/html
This commit is contained in:
committed by
Arjan Schrijver
parent
693c2d9e77
commit
c0a467d0d6
+1
-1
@@ -107,7 +107,7 @@ object InternetHelperSingleton {
|
||||
val contentType = response.headers["content-type"]
|
||||
?.substringBefore(";")
|
||||
?.trim()
|
||||
?: "text/html"
|
||||
?: "application/octet-stream"
|
||||
val encoding = response.headers["content-encoding"] ?: "UTF-8"
|
||||
val inputStream = ParcelFileDescriptor.AutoCloseInputStream(response.body)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user