abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r491140 - /incubator/abdera/java/branches/0.2.1-incubating/client/src/main/java/org/apache/abdera/protocol/client/RequestOptions.java
Date Sat, 30 Dec 2006 00:12:05 GMT
Author: jmsnell
Date: Fri Dec 29 16:12:05 2006
New Revision: 491140

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

Modified:
    incubator/abdera/java/branches/0.2.1-incubating/client/src/main/java/org/apache/abdera/protocol/client/RequestOptions.java

Modified: incubator/abdera/java/branches/0.2.1-incubating/client/src/main/java/org/apache/abdera/protocol/client/RequestOptions.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/branches/0.2.1-incubating/client/src/main/java/org/apache/abdera/protocol/client/RequestOptions.java?view=diff&rev=491140&r1=491139&r2=491140
==============================================================================
--- incubator/abdera/java/branches/0.2.1-incubating/client/src/main/java/org/apache/abdera/protocol/client/RequestOptions.java
(original)
+++ incubator/abdera/java/branches/0.2.1-incubating/client/src/main/java/org/apache/abdera/protocol/client/RequestOptions.java
Fri Dec 29 16:12:05 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