tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject cvs commit: jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/tomcat4 CoyoteAdapter.java
Date Wed, 01 Oct 2003 15:05:09 GMT
remm        2003/10/01 08:05:09

  Modified:    coyote/src/java/org/apache/coyote/tomcat4 CoyoteAdapter.java
  Log:
  - Port a cookie patch (I have no idea if it's really needed).
  
  Revision  Changes    Path
  1.22      +12 -6     jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/tomcat4/CoyoteAdapter.java
  
  Index: CoyoteAdapter.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/tomcat4/CoyoteAdapter.java,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- CoyoteAdapter.java	1 Oct 2003 11:44:24 -0000	1.21
  +++ CoyoteAdapter.java	1 Oct 2003 15:05:09 -0000	1.22
  @@ -391,9 +391,15 @@
               }
               try {
                   Cookie cookie = new Cookie(scookie.getName().toString(),
  -                                       scookie.getValue().toString());
  +                                           scookie.getValue().toString());
  +                cookie.setPath(scookie.getPath().toString());
  +                cookie.setVersion(scookie.getVersion());
  +                String domain = scookie.getDomain().toString();
  +                if (domain != null) {
  +                    cookie.setDomain(scookie.getDomain().toString());
  +                }
                   cookies[idx++] = cookie;
  -            } catch (Exception ex) {
  +            } catch(Exception ex) {
                   log("Bad Cookie Name: " + scookie.getName() + 
                       " /Value: " + scookie.getValue(),ex);
               }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message