abdera-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James M Snell <jasn...@gmail.com>
Subject Re: date header patch
Date Thu, 14 Jun 2007 03:31:47 GMT
Patch committed.

- James

Brian Moseley wrote:
> 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