Author: ab
Date: Tue Apr 27 18:06:10 2010
New Revision: 938586

URL: http://svn.apache.org/viewvc?rev=938586&view=rev
Log:
NUTCH-815 Invalid blank line before If-Modified-Since header.

Modified:
    lucene/nutch/trunk/CHANGES.txt
    
lucene/nutch/trunk/src/plugin/protocol-http/src/java/org/apache/nutch/protocol/http/HttpResponse.java

Modified: lucene/nutch/trunk/CHANGES.txt
URL: 
http://svn.apache.org/viewvc/lucene/nutch/trunk/CHANGES.txt?rev=938586&r1=938585&r2=938586&view=diff
==============================================================================
--- lucene/nutch/trunk/CHANGES.txt (original)
+++ lucene/nutch/trunk/CHANGES.txt Tue Apr 27 18:06:10 2010
@@ -2,6 +2,8 @@ Nutch Change Log
 
 Release 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)

Modified: 
lucene/nutch/trunk/src/plugin/protocol-http/src/java/org/apache/nutch/protocol/http/HttpResponse.java
URL: 
http://svn.apache.org/viewvc/lucene/nutch/trunk/src/plugin/protocol-http/src/java/org/apache/nutch/protocol/http/HttpResponse.java?rev=938586&r1=938585&r2=938586&view=diff
==============================================================================
--- 
lucene/nutch/trunk/src/plugin/protocol-http/src/java/org/apache/nutch/protocol/http/HttpResponse.java
 (original)
+++ 
lucene/nutch/trunk/src/plugin/protocol-http/src/java/org/apache/nutch/protocol/http/HttpResponse.java
 Tue Apr 27 18:06:10 2010
@@ -128,11 +128,11 @@ public class HttpResponse implements Res
       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();
 


Reply via email to