abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r491139 - /incubator/abdera/java/trunk/client/src/main/java/org/apache/abdera/protocol/client/RequestOptions.java
Date Sat, 30 Dec 2006 00:11:27 GMT
Author: jmsnell
Date: Fri Dec 29 16:11:27 2006
New Revision: 491139

URL: http://svn.apache.org/viewvc?view=rev&rev=491139
Log:
fixing a silly error when setting date headers. 
The code was missing an "else" clause

Modified:
    incubator/abdera/java/trunk/client/src/main/java/org/apache/abdera/protocol/client/RequestOptions.java

Modified: incubator/abdera/java/trunk/client/src/main/java/org/apache/abdera/protocol/client/RequestOptions.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/client/src/main/java/org/apache/abdera/protocol/client/RequestOptions.java?view=diff&rev=491139&r1=491138&r2=491139
==============================================================================
--- incubator/abdera/java/trunk/client/src/main/java/org/apache/abdera/protocol/client/RequestOptions.java
(original)
+++ incubator/abdera/java/trunk/client/src/main/java/org/apache/abdera/protocol/client/RequestOptions.java
Fri Dec 29 16:11:27 2006
@@ -180,7 +180,8 @@
   public void setDateHeader(String header, Date value) {
     if (value != null) 
       setHeader(header, DateUtil.formatDate(value));
-    removeHeaders(header);
+    else 
+      removeHeaders(header);
   }
   
   /**



Mime
View raw message