cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vgritse...@apache.org
Subject svn commit: r155059 - cocoon/trunk/src/java/org/apache/cocoon/reading/ResourceReader.java
Date Wed, 23 Feb 2005 20:04:45 GMT
Author: vgritsenko
Date: Wed Feb 23 12:04:43 2005
New Revision: 155059

URL: http://svn.apache.org/viewcvs?view=rev&rev=155059
Log:
Fix typo: "Range", not "Ranges"

Modified:
    cocoon/trunk/src/java/org/apache/cocoon/reading/ResourceReader.java

Modified: cocoon/trunk/src/java/org/apache/cocoon/reading/ResourceReader.java
URL: http://svn.apache.org/viewcvs/cocoon/trunk/src/java/org/apache/cocoon/reading/ResourceReader.java?view=diff&r1=155058&r2=155059
==============================================================================
--- cocoon/trunk/src/java/org/apache/cocoon/reading/ResourceReader.java (original)
+++ cocoon/trunk/src/java/org/apache/cocoon/reading/ResourceReader.java Wed Feb 23 12:04:43
2005
@@ -83,7 +83,7 @@
  * @author <a href="mailto:Giacomo.Pati@pwr.ch">Giacomo Pati</a>
  * @author <a href="mailto:tcurdt@apache.org">Torsten Curdt</a>
  * @author <a href="mailto:cziegeler@apache.org">Carsten Ziegeler</a>
- * @version CVS $Id: ResourceReader.java,v 1.8 2004/07/02 08:33:42 antonio Exp $
+ * @version CVS $Id$
  */
 public class ResourceReader extends AbstractReader
                             implements CacheableProcessingComponent, Configurable {
@@ -228,10 +228,10 @@
             response.setHeader("Accept-Ranges", "none");
         }
 
-        String ranges = request.getHeader("Ranges");
+        String ranges = request.getHeader("Range");
 
         ByteRange byteRange;
-        if (ranges != null && byteRanges) {
+        if (byteRanges && ranges != null) {
             try {
                 ranges = ranges.substring(ranges.indexOf('=') + 1);
                 byteRange = new ByteRange(ranges);



Mime
View raw message