update server list. remove extra spaces in html error response.
This commit is contained in:
parent
d81dc7017e
commit
6a491e2f98
|
@ -488,7 +488,7 @@ class TootApiClient(
|
||||||
// HTMLならタグを除去する
|
// HTMLならタグを除去する
|
||||||
val ct = response.body?.contentType()
|
val ct = response.body?.contentType()
|
||||||
if(ct?.subtype == "html") {
|
if(ct?.subtype == "html") {
|
||||||
val decoded = DecodeOptions().decodeHTML(bodyString).toString()
|
val decoded = DecodeOptions().decodeHTML(bodyString).toString().replace("""[\s ]+""".toRegex()," ")
|
||||||
bodyString = decoded
|
bodyString = decoded
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue