Home Hero Scans Fix HTTP Error 500 (#7282)

* Fix HTTP Error 500

* Update build.gradle
This commit is contained in:
FourTOne5 2021-05-30 06:26:09 +06:00 committed by GitHub
parent d7031daaeb
commit b15d718ebb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -5,7 +5,7 @@ ext {
extName = 'Home Hero Scans'
pkgNameSuffix = "en.homeheroscans"
extClass = '.HomeHeroScans'
extVersionCode = 2
extVersionCode = 3
libVersion = '1.2'
}

View File

@ -121,8 +121,8 @@ open class HomeHeroScans : HttpSource() {
override fun chapterListRequest(manga: SManga): Request {
val series = "$baseUrl${manga.url}".toHttpUrlOrNull()!!.queryParameter("series")
return POST(
"$baseUrl/api/chapters", headers, """{"series":"$series"}""".toRequestBody("text/plain;charset=utf-8".toMediaTypeOrNull())
return GET(
"$baseUrl/api/chapters?series=$series", headers
)
}