@@ -101,6 +101,12 @@ public class AppConfig {
101101 */
102102 public boolean ignoreSSLCertificate ;
103103
104+
105+ /**
106+ * 是否忽略对http协议中content-length的校验
107+ */
108+ public boolean ignoreHttpContentLength ;
109+
104110 /**
105111 * 测试模式,开启后每次都会重头更新,会增加流量消耗,仅用来测试更新时网速
106112 */
@@ -122,6 +128,7 @@ public AppConfig(Map<String, Object> map) {
122128 int httpTimeout = getInt (map , "http-timeout" , null , 7000 );
123129 int reties = getInt (map , "retries" , "http-retries" , 3 );
124130 boolean ignoreSSLCertificate = getBoolean (map , "ignore-ssl-cert" , "http-ignore-certificate" , false );
131+ boolean ignoreHttpContentLength = getBoolean (map , "ignore-http-content-length" , "" , false );
125132 boolean testMode = getBoolean (map , "test-mode" , null , false );
126133
127134// if (urls.contains("webda"))
@@ -141,6 +148,7 @@ public AppConfig(Map<String, Object> map) {
141148 this .httpTimeout = httpTimeout ;
142149 this .reties = reties ;
143150 this .ignoreSSLCertificate = ignoreSSLCertificate ;
151+ this .ignoreHttpContentLength = ignoreHttpContentLength ;
144152 this .testMode = testMode ;
145153 }
146154
0 commit comments