update server list. remove extra spaces in html error response.

This commit is contained in:
tateisu 2019-09-24 15:18:48 +09:00
parent d81dc7017e
commit 6a491e2f98
2 changed files with 4657 additions and 160 deletions

View File

@ -488,7 +488,7 @@ class TootApiClient(
// HTMLならタグを除去する
val ct = response.body?.contentType()
if(ct?.subtype == "html") {
val decoded = DecodeOptions().decodeHTML(bodyString).toString()
val decoded = DecodeOptions().decodeHTML(bodyString).toString().replace("""[\s ]+""".toRegex()," ")
bodyString = decoded
}

File diff suppressed because it is too large Load Diff