mirror of
https://github.com/mihonapp/mihon.git
synced 2025-11-15 05:27:28 +01:00
Override X-Requested-With header value in WebView requests (closes #6781)
This commit is contained in:
@@ -105,7 +105,6 @@ class WebViewActivity : BaseActivity() {
|
||||
headers = source.headers.toMultimap().mapValues { it.value.getOrNull(0) ?: "" }.toMutableMap()
|
||||
binding.webview.settings.userAgentString = source.headers["User-Agent"]
|
||||
}
|
||||
headers["X-Requested-With"] = WebViewUtil.REQUESTED_WITH
|
||||
|
||||
supportActionBar?.subtitle = url
|
||||
|
||||
|
||||
Reference in New Issue
Block a user