Skip to content

Commit 2dc5732

Browse files
committed
defualt http manager construct
1 parent 0866665 commit 2dc5732

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

library/src/main/java/com/qiniu/android/http/HttpManager.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ public final class HttpManager {
2020
private static final String userAgent = getUserAgent();
2121
private AsyncHttpClient client;
2222

23-
2423
public HttpManager(Proxy proxy) {
2524
client = new AsyncHttpClient();
2625
client.setConnectTimeout(Config.CONNECT_TIMEOUT);
@@ -32,6 +31,10 @@ public HttpManager(Proxy proxy) {
3231
}
3332
}
3433

34+
public HttpManager() {
35+
this(null);
36+
}
37+
3538
private static String genId() {
3639
Random r = new Random();
3740
return System.currentTimeMillis() + "" + r.nextInt(999);

0 commit comments

Comments
 (0)