remm        01/02/23 22:38:17

  Modified:    src/webdav/client/src/org/apache/webdav/lib
                        WebdavClient.java
  Log:
  - Apparently there are some problems with the parsing of complex headers, and
    in particular cookie parsing. Temporarily wrap the cookie parsing in a try / catch.
  
  Revision  Changes    Path
  1.22      +9 -5      
jakarta-slide/src/webdav/client/src/org/apache/webdav/lib/WebdavClient.java
  
  Index: WebdavClient.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-slide/src/webdav/client/src/org/apache/webdav/lib/WebdavClient.java,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- WebdavClient.java 2001/02/20 07:02:17     1.21
  +++ WebdavClient.java 2001/02/24 06:38:17     1.22
  @@ -1,7 +1,7 @@
   /*
  - * $Header: 
/home/cvs/jakarta-slide/src/webdav/client/src/org/apache/webdav/lib/WebdavClient.java,v
 1.21 2001/02/20 07:02:17 remm Exp $
  - * $Revision: 1.21 $
  - * $Date: 2001/02/20 07:02:17 $
  + * $Header: 
/home/cvs/jakarta-slide/src/webdav/client/src/org/apache/webdav/lib/WebdavClient.java,v
 1.22 2001/02/24 06:38:17 remm Exp $
  + * $Revision: 1.22 $
  + * $Date: 2001/02/24 06:38:17 $
    *
    * ====================================================================
    *
  @@ -724,8 +724,12 @@
           }
           
           if (header != null) {
  -            Cookie[] cookies = Cookie.parse(sessionHost, header);
  -            state.addCookies(cookies);
  +            try {
  +                Cookie[] cookies = Cookie.parse(sessionHost, header);
  +                state.addCookies(cookies);
  +            } catch (Exception e) {
  +                e.printStackTrace();
  +            }
           }
           
           return result;
  
  
  

Reply via email to