You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by re...@apache.org on 2001/12/06 07:46:46 UTC
cvs commit: jakarta-tomcat-connectors/http11/src/java/org/apache/coyote/http11/filters IdentityInputFilter.java
remm 01/12/05 22:46:46
Modified: http11/src/java/org/apache/coyote/http11/filters
IdentityInputFilter.java
Log:
- Handle the case where no content-length was specified.
Revision Changes Path
1.4 +1 -5 jakarta-tomcat-connectors/http11/src/java/org/apache/coyote/http11/filters/IdentityInputFilter.java
Index: IdentityInputFilter.java
===================================================================
RCS file: /home/cvs/jakarta-tomcat-connectors/http11/src/java/org/apache/coyote/http11/filters/IdentityInputFilter.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- IdentityInputFilter.java 2001/12/04 06:33:07 1.3
+++ IdentityInputFilter.java 2001/12/06 06:46:46 1.4
@@ -162,18 +162,14 @@
chunk.setBytes(chunk.getBytes(), chunk.getStart(),
(int) remaining);
result = (int) remaining;
- remaining = -1;
- } else {
- remaining = remaining - result;
}
+ remaining = remaining - result;
} else {
// No more bytes left to be read : return -1 and clear the
// buffer
chunk.recycle();
result = -1;
}
- } else {
- result = -1;
}
return result;
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>