You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by ol...@apache.org on 2004/03/09 15:01:02 UTC
cvs commit: jakarta-commons/httpclient/src/java/org/apache/commons/httpclient HttpMethodBase.java
olegk 2004/03/09 06:01:02
Modified: httpclient/src/java/org/apache/commons/httpclient
HttpMethodBase.java
Log:
Changelog:
HttpMethodBase#getResponseContentLength() method made public
Contributed by Oleg Kalnichevski
Reviewed by Michael Becke & Ortwin Glueck
Revision Changes Path
1.201 +5 -5 jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/HttpMethodBase.java
Index: HttpMethodBase.java
===================================================================
RCS file: /home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/HttpMethodBase.java,v
retrieving revision 1.200
retrieving revision 1.201
diff -u -r1.200 -r1.201
--- HttpMethodBase.java 26 Feb 2004 20:25:55 -0000 1.200
+++ HttpMethodBase.java 9 Mar 2004 14:01:02 -0000 1.201
@@ -612,7 +612,7 @@
* If <tt>Content-Length</tt> header is not present, the method
* returns <tt>-1</tt>.
*/
- protected long getResponseContentLength() {
+ public long getResponseContentLength() {
Header[] headers = getResponseHeaderGroup().getHeaders("Content-Length");
if (headers.length == 0) {
return -1;
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org