You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@nutch.apache.org by og...@yahoo.com on 2006/09/08 07:19:08 UTC
Re: HTTP/1.1 problem
That looks right - committed, thanks.
Otis
----- Original Message ----
From: Doğacan Güney <do...@agmlab.com>
To: nutch-dev@lucene.apache.org
Sent: Thursday, August 24, 2006 4:15:53 AM
Subject: HTTP/1.1 problem
Hello everyone,
There is a small bug in lib-http plugin code that prevents
protocol-httpclient plugin from using HTTP/1.1.
One-liner is attached.
---
Doğacan Güney
Index: src/plugin/lib-http/src/java/org/apache/nutch/protocol/http/api/HttpBase.java
===================================================================
--- src/plugin/lib-http/src/java/org/apache/nutch/protocol/http/api/HttpBase.java (revision 434336)
+++ src/plugin/lib-http/src/java/org/apache/nutch/protocol/http/api/HttpBase.java (working copy)
@@ -158,7 +158,7 @@
this.maxCrawlDelay = (long)(conf.getInt("fetcher.max.crawl.delay", -1) * 1000);
// backward-compatible default setting
this.byIP = conf.getBoolean("fetcher.threads.per.host.by.ip", true);
- this.useHttp11 = conf.getBoolean("http.http11", false);
+ this.useHttp11 = conf.getBoolean("http.useHttp11", false);
this.robots.setConf(conf);
logConf();
}