Fix WebView user-agent (fixes #7306)
The `source.headers.toMultimap()` call in WebViewActivity makes all the names lowercase. (cherry picked from commit 284880d096d1a4e4f746cc49de945f3186207285)
This commit is contained in:
parent
d7919c531a
commit
2ae6d76af7
1 changed files with 2 additions and 2 deletions
|
|
@ -44,7 +44,7 @@ fun WebViewScreen(
|
|||
onClearCookies: (String) -> Unit,
|
||||
) {
|
||||
val context = LocalContext.current
|
||||
val state = rememberWebViewState(url = url)
|
||||
val state = rememberWebViewState(url = url, additionalHttpHeaders = headers)
|
||||
val navigator = rememberWebViewNavigator()
|
||||
|
||||
Column {
|
||||
|
|
@ -144,7 +144,7 @@ fun WebViewScreen(
|
|||
WebView.setWebContentsDebuggingEnabled(true)
|
||||
}
|
||||
|
||||
headers["User-Agent"]?.let {
|
||||
headers["user-agent"]?.let {
|
||||
webView.settings.userAgentString = it
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue