cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vgritse...@apache.org
Subject cvs commit: xml-cocoon2/src/java/org/apache/cocoon/reading ResourceReader.java
Date Wed, 05 Jun 2002 01:14:46 GMT
vgritsenko    2002/06/04 18:14:46

  Modified:    src/java/org/apache/cocoon/reading ResourceReader.java
  Log:
  Fix bug 9539: ResourceReader incorrectly advertises 'byte-range' support
  
  Revision  Changes    Path
  1.13      +4 -2      xml-cocoon2/src/java/org/apache/cocoon/reading/ResourceReader.java
  
  Index: ResourceReader.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/java/org/apache/cocoon/reading/ResourceReader.java,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- ResourceReader.java	4 Jun 2002 07:31:52 -0000	1.12
  +++ ResourceReader.java	5 Jun 2002 01:14:46 -0000	1.13
  @@ -89,7 +89,7 @@
    *   </dl>
    *
    * @author <a href="mailto:Giacomo.Pati@pwr.ch">Giacomo Pati</a>
  - * @version CVS $Id: ResourceReader.java,v 1.12 2002/06/04 07:31:52 cziegeler Exp $
  + * @version CVS $Id: ResourceReader.java,v 1.13 2002/06/05 01:14:46 vgritsenko Exp $
    */
   public class ResourceReader
     extends AbstractReader
  @@ -182,7 +182,9 @@
               // FIXME (VG): Environment has setContentLength, and
               // Response interface has not. Strange.
               response.setHeader("Content-Length", Long.toString(contentLength));
  -            response.setHeader("Accept-Ranges", "bytes");
  +
  +            // Bug #9539: This resource reader does not support ranges
  +            response.setHeader("Accept-Ranges", "none");
   
               inputStream.close();
               inputStream = null;
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org


Mime
View raw message