pull/736/head
gedoor 4 years ago
parent f8f2f7b87e
commit decb5c5275
  1. 6
      app/src/main/java/io/legado/app/help/http/StrResponse.kt

@ -13,14 +13,14 @@ class StrResponse private constructor(
val body: String?,
val errorBody: ResponseBody?
) {
val raw get() = rawResponse
fun raw() = rawResponse
val url: String
get() {
raw.networkResponse?.let {
rawResponse.networkResponse?.let {
return it.request.url.toString()
}
return raw.request.url.toString()
return rawResponse.request.url.toString()
}
fun code(): Int {

Loading…
Cancel
Save