Commit b32cf75d by jianshuqin

cfg.useHttpsDomains = false;

parent 6f498cdd
...@@ -134,6 +134,7 @@ public class CostFileUtil { ...@@ -134,6 +134,7 @@ public class CostFileUtil {
// Configuration cfg = new Configuration(Zone.zone2()); // Configuration cfg = new Configuration(Zone.zone2());
Configuration cfg = new Configuration(Region.region2()); Configuration cfg = new Configuration(Region.region2());
//2、其他参数参考类注释 //2、其他参数参考类注释
cfg.useHttpsDomains = false;
cfg.proxy = new ProxyConfiguration("10.0.8.190", 9998); cfg.proxy = new ProxyConfiguration("10.0.8.190", 9998);
// cfg.proxy = new ProxyConfiguration("106.55.104.91", 9998); // cfg.proxy = new ProxyConfiguration("106.55.104.91", 9998);
UploadManager uploadManager = new UploadManager(cfg); UploadManager uploadManager = new UploadManager(cfg);
...@@ -153,7 +154,7 @@ public class CostFileUtil { ...@@ -153,7 +154,7 @@ public class CostFileUtil {
return putRet.key; return putRet.key;
} catch (QiniuException ex) { } catch (QiniuException ex) {
Response r = ex.response; Response r = ex.response;
System.err.println(r.toString()); System.err.println(ex.getCause().getMessage());
try { try {
System.err.println(r.bodyString()); System.err.println(r.bodyString());
} catch (QiniuException ex2) { } catch (QiniuException ex2) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment