-
Notifications
You must be signed in to change notification settings - Fork 612
New issue
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
请问怎么修改 才能支持https 请求 #362
Comments
正常情况下不需要任何修改就支持https,如果你的连接是自己签发的证书,那需要你自己配置okhttp让它信任你自己的证书 |
不是自己签发的证书 ,是默认所有的证书 会下载失败 不支持https |
如果是配置okhttp 信任自己的证书 需要怎么写 |
你能把你具体的报错信息贴出来吗?你说不支持https,你有把demo代码拉下来看吗?demo里就是https的下载链接 |
fun Task.download( 创建任务的时候,指定你自己的Request对象,在你自己的Request对象里面,添加okhttp信任所有证书的代码 |
https://39.165.164.20:8888/lingzhang_1.0_release.apk 就是这样的https 请求 |
ok 已经解决了 谢谢 |
能否给出具体的代码 支持https 请求
The text was updated successfully, but these errors were encountered: