Support Referer header for image requests

This commit is contained in:
Koitharu
2021-01-07 14:48:35 +02:00
parent 22e7bab879
commit 1a0986212b
22 changed files with 55 additions and 19 deletions

View File

@@ -24,7 +24,7 @@ class RemoteRepositoryTest(source: MangaSource) : KoinTest {
private val repo = try {
source.cls.getDeclaredConstructor(MangaLoaderContext::class.java)
.newInstance(get())
.newInstance(get<MangaLoaderContext>())
} catch (e: NoSuchMethodException) {
source.cls.newInstance()
}