juergen     02/01/04 01:23:50

  Modified:    src/webdav/client/src/org/apache/webdav/lib/methods
                        OptionsMethod.java
  Log:
  1) the option method does store all headers in a hashtable now.
  2) I18N fix
  3) if the body is empty, return null
  
  Revision  Changes    Path
  1.8       +8 -6      
jakarta-slide/src/webdav/client/src/org/apache/webdav/lib/methods/OptionsMethod.java
  
  Index: OptionsMethod.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-slide/src/webdav/client/src/org/apache/webdav/lib/methods/OptionsMethod.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- OptionsMethod.java        2 Jan 2002 15:13:31 -0000       1.7
  +++ OptionsMethod.java        4 Jan 2002 09:23:50 -0000       1.8
  @@ -1,7 +1,7 @@
   /*
  - * $Header: 
/home/cvs/jakarta-slide/src/webdav/client/src/org/apache/webdav/lib/methods/OptionsMethod.java,v
 1.7 2002/01/02 15:13:31 juergen Exp $
  - * $Revision: 1.7 $
  - * $Date: 2002/01/02 15:13:31 $
  + * $Header: 
/home/cvs/jakarta-slide/src/webdav/client/src/org/apache/webdav/lib/methods/OptionsMethod.java,v
 1.8 2002/01/04 09:23:50 juergen Exp $
  + * $Revision: 1.8 $
  + * $Date: 2002/01/04 09:23:50 $
    *
    * ====================================================================
    *
  @@ -65,7 +65,7 @@
   
   import java.io.IOException;
   import java.io.InputStream;
  -import java.io.StringReader;
  +import java.io.ByteArrayInputStream;
   
   import java.util.Vector;
   import java.util.Enumeration;
  @@ -281,6 +281,8 @@
                   methodsAllowed.addElement(methodAllowed);
               }
           }
  +        
  +        super.processResponseHeaders(headers);
       }
       
       
  @@ -397,8 +399,8 @@
               ofs += chunkLen;
           }
           
  -            
  -        return builder.parse(new InputSource(new StringReader(new String(all))));
  +        if (all.length == 0) return null;
  +        return builder.parse(new InputSource(new ByteArrayInputStream(all)));
   
       }
           
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to