We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
代码如下 Map<String, String> extraHeaders = new HashMap<String, String>(); extraHeaders.put("Referer", ""); extraHeaders.put("Host", host); String ip = HttpDNS.getIpByHostAsync(host); if (!TextUtils.isEmpty(ip)) { String newUrl = StringRegular.urlWithIp(currentUrl, ip); view.loadUrl(newUrl, extraHeaders); }
跟了一波webview源码没找到原因,功力不够,求解
The text was updated successfully, but these errors were encountered:
No branches or pull requests
代码如下
Map<String, String> extraHeaders = new HashMap<String, String>();
extraHeaders.put("Referer", "");
extraHeaders.put("Host", host);
String ip = HttpDNS.getIpByHostAsync(host);
if (!TextUtils.isEmpty(ip)) {
String newUrl = StringRegular.urlWithIp(currentUrl, ip);
view.loadUrl(newUrl, extraHeaders);
}
跟了一波webview源码没找到原因,功力不够,求解
The text was updated successfully, but these errors were encountered: