abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r547102 - /incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/servlet/HttpServletRequestContext.java
Date Thu, 14 Jun 2007 03:31:33 GMT
Author: jmsnell
Date: Wed Jun 13 20:31:32 2007
New Revision: 547102

URL: http://svn.apache.org/viewvc?view=rev&rev=547102
Log:
getDateHeader patch submitted by Brian Moseley. thanks!

"fixes HttpServletRequestContext.getDateHeader to return null when 
the header is not present in the underlying request. previously it 
was returning the epoch date."

Modified:
    incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/servlet/HttpServletRequestContext.java

Modified: incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/servlet/HttpServletRequestContext.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/servlet/HttpServletRequestContext.java?view=diff&rev=547102&r1=547101&r2=547102
==============================================================================
--- incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/servlet/HttpServletRequestContext.java
(original)
+++ incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/servlet/HttpServletRequestContext.java
Wed Jun 13 20:31:32 2007
@@ -144,7 +144,8 @@
   }
   
   public Date getDateHeader(String name) {
-    return new Date(request.getDateHeader(name));
+    long value = request.getDateHeader(name);
+    return value != -1 ? new Date(value) : null;
   }
 
   public String getHeader(String name) {



Mime
View raw message