@ -68,7 +68,7 @@ data class BookSource(
fun getHeaderMap(): Map<String, String> {
val headerMap = HashMap<String, String>()
headerMap["user-agent"] = App.INSTANCE.getPrefString("user_agent") ?: userAgent
headerMap["User-Agent"] = App.INSTANCE.getPrefString("user_agent") ?: userAgent
header?.let {
GSON.fromJsonObject<Map<String, String>>(header)?.let {
headerMap.putAll(it)
@ -131,7 +131,7 @@ object OldRule {
private fun uaToHeader(ua: String?): String? {
if (ua.isNullOrEmpty()) return null
val map = mapOf(Pair("user-agent", ua))
val map = mapOf(Pair("User-Agent", ua))
return GSON.toJson(map)
}