From 30daec480348e3b679dca5f07c8147f540134876 Mon Sep 17 00:00:00 2001 From: Sutra Zhou Date: Sat, 2 Jan 2021 20:33:17 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"=E6=8F=90=E4=BE=9B=E5=87=BA=E7=8E=B0?= =?UTF-8?q?=E6=9F=90=E7=A7=8D=E5=BC=82=E5=B8=B8=E5=88=B7=E6=96=B0=E4=BB=A3?= =?UTF-8?q?=E7=90=86=EF=BC=8C=E5=BC=82=E5=B8=B8=E5=8F=AF=E9=85=8D=E7=BD=AE?= =?UTF-8?q?"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 4a6441e7c5923c14d889c7f54af0ef15e5a05cb9. --- .../webmagic/downloader/HttpClientDownloader.java | 9 --------- 1 file changed, 9 deletions(-) diff --git a/webmagic-core/src/main/java/us/codecraft/webmagic/downloader/HttpClientDownloader.java b/webmagic-core/src/main/java/us/codecraft/webmagic/downloader/HttpClientDownloader.java index f204e39..49217e1 100644 --- a/webmagic-core/src/main/java/us/codecraft/webmagic/downloader/HttpClientDownloader.java +++ b/webmagic-core/src/main/java/us/codecraft/webmagic/downloader/HttpClientDownloader.java @@ -4,7 +4,6 @@ import java.io.IOException; import java.nio.charset.Charset; import java.util.HashMap; import java.util.Map; -import java.util.function.Predicate; import org.apache.commons.io.IOUtils; import org.apache.http.HttpResponse; @@ -44,14 +43,6 @@ public class HttpClientDownloader extends AbstractDownloader { private boolean responseHeader = true; - private volatile boolean refreshProxyOnError = false; - - private Predicate throwablePredicate = t->false; - - public void setThrowablePredicate(Predicate predicate){ - this.throwablePredicate = predicate; - } - public void setHttpUriRequestConverter(HttpUriRequestConverter httpUriRequestConverter) { this.httpUriRequestConverter = httpUriRequestConverter; }