Apache Nutch is an extensible and scalable web crawler
NUTCH-815 Invalid blank line before If-Modified-Since header.
Andrzej Bialeckiec90a33da346
diff --git a/CHANGES.txt b/CHANGES.txtindex 087ca92b5..440529810 100644--- a/CHANGES.txt+++ b/CHANGES.txt@@ -2,6 +2,8 @@ Nutch Change LogRelease 1.1 - 2010-04-06+* NUTCH-815 Invalid blank line before If-Modified-Since header (Pascal Dimassimo via ab)+* NUTCH-814 SegmentMerger bug (Rob Bradshaw, ab)* NUTCH-812 Crawl.java incorrectly uses the Generator API resulting in NPE (Phil Barnett via mattmann and ab)diff --git a/src/plugin/protocol-http/src/java/org/apache/nutch/protocol/http/HttpResponse.java b/src/plugin/protocol-http/src/java/org/apache/nutch/protocol/http/HttpResponse.javaindex 3ee743494..9ed77f513 100644--- a/src/plugin/protocol-http/src/java/org/apache/nutch/protocol/http/HttpResponse.java+++ b/src/plugin/protocol-http/src/java/org/apache/nutch/protocol/http/HttpResponse.java@@ -128,11 +128,11 @@ public class HttpResponse implements Response {reqStr.append(this.http.getAcceptLanguage());reqStr.append("\r\n");- reqStr.append("\r\n");if (datum.getModifiedTime() > 0) {reqStr.append("If-Modified-Since: " + HttpDateFormat.toString(datum.getModifiedTime()));reqStr.append("\r\n");}+ reqStr.append("\r\n");byte[] reqBytes= reqStr.toString().getBytes();