abdera-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brian Moseley" <...@osafoundation.org>
Subject Re: date header patch
Date Tue, 12 Jun 2007 18:15:45 GMT
On 6/12/07, James M Snell <jasnell@gmail.com> wrote:
> No patch attached.

i don't know who's stripping the attachment, gmail or the mailing list
manager, but that's really annoying.

Index: server/src/main/java/org/apache/abdera/protocol/server/servlet/HttpServletRequestContext.java
===================================================================
--- server/src/main/java/org/apache/abdera/protocol/server/servlet/HttpServletRequestContext.java
(revision
546524)
+++ server/src/main/java/org/apache/abdera/protocol/server/servlet/HttpServletRequestContext.java
(working
copy)
@@ -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