You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-dev@jakarta.apache.org by re...@locus.apache.org on 2000/11/17 19:20:42 UTC

cvs commit: jakarta-slide/src/share/org/apache/slide/webdav/method GetMethod.java

remm        00/11/17 10:20:41

  Modified:    src/share/org/apache/slide/webdav/method GetMethod.java
  Log:
  - When doing a HEAD, it's not necessary to retrieve the content of the
    object.
    Patch sumbmitted by Juergen Pill <Ju...@softwareag.com>
  
  Revision  Changes    Path
  1.8       +9 -4      jakarta-slide/src/share/org/apache/slide/webdav/method/GetMethod.java
  
  Index: GetMethod.java
  ===================================================================
  RCS file: /home/cvs/jakarta-slide/src/share/org/apache/slide/webdav/method/GetMethod.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- GetMethod.java	2000/10/08 22:49:29	1.7
  +++ GetMethod.java	2000/11/17 18:20:41	1.8
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-slide/src/share/org/apache/slide/webdav/method/GetMethod.java,v 1.7 2000/10/08 22:49:29 remm Exp $
  - * $Revision: 1.7 $
  - * $Date: 2000/10/08 22:49:29 $
  + * $Header: /home/cvs/jakarta-slide/src/share/org/apache/slide/webdav/method/GetMethod.java,v 1.8 2000/11/17 18:20:41 remm Exp $
  + * $Revision: 1.8 $
  + * $Date: 2000/11/17 18:20:41 $
    *
    * ====================================================================
    *
  @@ -210,7 +210,12 @@
                       NodeRevisionContent revisionContent = 
                           content.retrieve(credToken, revisionDescriptors, 
                                            revisionDescriptor);
  -                    InputStream is = revisionContent.streamContent();
  +                    InputStream is = null;
  +                    if (printContent) {
  +                        is = content.retrieve
  +                            (credToken, revisionDescriptors,
  +                             revisionDescriptor).streamContent();
  +                    }
                       
                       Vector ranges = parseRange(req, resp, resourceInfo);