bug fix
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
package com.arialyy.aria.util;
|
||||
|
||||
import android.text.TextUtils;
|
||||
import com.arialyy.aria.core.DownloadManager;
|
||||
import java.io.BufferedInputStream;
|
||||
import java.io.FileInputStream;
|
||||
@ -37,6 +38,9 @@ public class SSLContextUtil {
|
||||
* @param caPath 保存在assets目录下的CA证书完整路径
|
||||
*/
|
||||
public static SSLContext getSSLContext(String caAlias, String caPath) {
|
||||
if (TextUtils.isEmpty(caAlias) || TextUtils.isEmpty(caPath)){
|
||||
return null;
|
||||
}
|
||||
// Load CAs from an InputStream
|
||||
// (could be from a resource or ByteArrayInputStream or ...)
|
||||
CertificateFactory cf = null;
|
||||
|
@ -17,7 +17,7 @@ Aria,致力于让下载傻瓜化</br>
|
||||
## 下载
|
||||
[](https://bintray.com/arialyy/maven/Aria/_latestVersion)</br>
|
||||
```java
|
||||
compile 'com.arialyy.aria:Aria:2.3.9'
|
||||
compile 'com.arialyy.aria:Aria:2.4.0'
|
||||
```
|
||||
|
||||
## 示例
|
||||
@ -134,7 +134,7 @@ Aria支持https下载,如果你希望使用自己的ca证书,那么你需要
|
||||
|
||||
***
|
||||
## 开发日志
|
||||
+ v_2.3.9 支持https链接下载
|
||||
+ v_2.4.0 支持https链接下载
|
||||
+ v_2.3.8 修复数据错乱的bug、添加fragment支持
|
||||
+ v_2.3.6 添加dialog、popupWindow支持
|
||||
+ v_2.3.3
|
||||
|
Reference in New Issue
Block a user