Support Referer header for image requests
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user