You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nutch.apache.org by jn...@apache.org on 2014/04/30 15:14:41 UTC
svn commit: r1591282 - in /nutch/branches/2.x: CHANGES.txt
src/plugin/lib-http/src/java/org/apache/nutch/protocol/http/api/HttpBase.java
Author: jnioche
Date: Wed Apr 30 13:14:40 2014
New Revision: 1591282
URL: http://svn.apache.org/r1591282
Log:
NUTCH-1720 Duplicate lines in HttpBase.java (Walter Tietze via jnioche)
Modified:
nutch/branches/2.x/CHANGES.txt
nutch/branches/2.x/src/plugin/lib-http/src/java/org/apache/nutch/protocol/http/api/HttpBase.java
Modified: nutch/branches/2.x/CHANGES.txt
URL: http://svn.apache.org/viewvc/nutch/branches/2.x/CHANGES.txt?rev=1591282&r1=1591281&r2=1591282&view=diff
==============================================================================
--- nutch/branches/2.x/CHANGES.txt (original)
+++ nutch/branches/2.x/CHANGES.txt Wed Apr 30 13:14:40 2014
@@ -2,6 +2,8 @@ Nutch Change Log
Current Development
+* NUTCH-1720 Duplicate lines in HttpBase.java (Walter Tietze via jnioche)
+
* NUTCH-797 URL not properly constructed when link target begins with a "?" (Doug Cook, Robert Hohman, Stondet, ab via snagel)
* NUTCH-1759 Upgrade to Crawler Commons 0.4 (jnioche)
Modified: nutch/branches/2.x/src/plugin/lib-http/src/java/org/apache/nutch/protocol/http/api/HttpBase.java
URL: http://svn.apache.org/viewvc/nutch/branches/2.x/src/plugin/lib-http/src/java/org/apache/nutch/protocol/http/api/HttpBase.java?rev=1591282&r1=1591281&r2=1591282&view=diff
==============================================================================
--- nutch/branches/2.x/src/plugin/lib-http/src/java/org/apache/nutch/protocol/http/api/HttpBase.java (original)
+++ nutch/branches/2.x/src/plugin/lib-http/src/java/org/apache/nutch/protocol/http/api/HttpBase.java Wed Apr 30 13:14:40 2014
@@ -154,9 +154,6 @@ public abstract class HttpBase implement
if (code == 200) { // got a good response
return new ProtocolOutput(c); // return it
- } else if (code == 410) { // page is gone
- return new ProtocolOutput(c,
- ProtocolStatusUtils.makeStatus(ProtocolStatusCodes.GONE, "Http: " + code + " url=" + url));
} else if (code >= 300 && code < 400) { // handle redirect
String location = response.getHeader("Location");
// some broken servers, such as MS IIS, use lowercase header name...
@@ -198,7 +195,7 @@ public abstract class HttpBase implement
ProtocolStatusUtils.makeStatus(ProtocolStatusCodes.NOTFOUND, u));
} else if (code == 410) { // permanently GONE
return new ProtocolOutput(c,
- ProtocolStatusUtils.makeStatus(ProtocolStatusCodes.GONE, u));
+ ProtocolStatusUtils.makeStatus(ProtocolStatusCodes.GONE, "Http: " + code + " url=" + u));
} else {
return new ProtocolOutput(c,
ProtocolStatusUtils.makeStatus(ProtocolStatusCodes.EXCEPTION, "Http code=" + code + ", url="