Skip to content

Commit 30daec4

Browse files
committed
Revert "提供出现某种异常刷新代理,异常可配置"
This reverts commit 4a6441e.
1 parent d0843be commit 30daec4

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

webmagic-core/src/main/java/us/codecraft/webmagic/downloader/HttpClientDownloader.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import java.nio.charset.Charset;
55
import java.util.HashMap;
66
import java.util.Map;
7-
import java.util.function.Predicate;
87

98
import org.apache.commons.io.IOUtils;
109
import org.apache.http.HttpResponse;
@@ -44,14 +43,6 @@ public class HttpClientDownloader extends AbstractDownloader {
4443

4544
private boolean responseHeader = true;
4645

47-
private volatile boolean refreshProxyOnError = false;
48-
49-
private Predicate<Throwable> throwablePredicate = t->false;
50-
51-
public void setThrowablePredicate(Predicate<Throwable> predicate){
52-
this.throwablePredicate = predicate;
53-
}
54-
5546
public void setHttpUriRequestConverter(HttpUriRequestConverter httpUriRequestConverter) {
5647
this.httpUriRequestConverter = httpUriRequestConverter;
5748
}

0 commit comments

Comments
 (0)