brett 2004/07/01 07:22:52
Modified: src/java/org/apache/maven/util Tag: MAVEN-1_0-BRANCH
HttpUtils.java
Log:
fix projected value
Revision Changes Path
No revision
No revision
1.28.4.13 +1 -1 maven/src/java/org/apache/maven/util/HttpUtils.java
Index: HttpUtils.java
===================================================================
RCS file: /home/cvs/maven/src/java/org/apache/maven/util/HttpUtils.java,v
retrieving revision 1.28.4.12
retrieving revision 1.28.4.13
diff -u -r1.28.4.12 -r1.28.4.13
--- HttpUtils.java 1 Jul 2004 14:03:00 -0000 1.28.4.12
+++ HttpUtils.java 1 Jul 2004 14:22:52 -0000 1.28.4.13
@@ -498,7 +498,7 @@
Header header = get.getResponseHeader("Content-Length");
if (header != null) {
try {
- projected = Integer.valueOf(header.getValue()).intValue();
+ projected = Integer.valueOf(header.getValue()).intValue()/1024;
}
catch (NumberFormatException e) {
LOG.warn( "error parsing content length header '" +
header.getValue() + "' " + e );
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]