abdera-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sanjiva Weerawarana <sanj...@opensource.lk>
Subject Re: date header patch
Date Sun, 24 Jun 2007 16:18:50 GMT
Its the mailing list.

The proper procedure is to open a JIRA and attach the patch there .. that 
gives you the chance to make clear you're giving Apache a license for your 
patch etc..

Sanjiva.

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) {
> 

-- 
Sanjiva Weerawarana, Ph.D.
Founder & Director; Lanka Software Foundation; http://www.opensource.lk/
Founder, Chairman & CEO; WSO2, Inc.; http://www.wso2.com/
Director; Open Source Initiative; http://www.opensource.org/
Member; Apache Software Foundation; http://www.apache.org/
Visiting Lecturer; University of Moratuwa; http://www.cse.mrt.ac.lk/

Mime
View raw message