commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ortwin Gl├╝ck <ortwin.glu...@nose.ch>
Subject Re: [httpclient] Patch for chunk
Date Thu, 21 Nov 2002 15:02:20 GMT
Not sure what you are trying to fix here. This patch does *nothing*.

I guess you should rather close your input stream.

Odi


jean-frederic clere wrote:

> Index: src/java/org/apache/commons/httpclient/methods/PostMethod.java
> ===================================================================
> RCS file: 
> /home/cvs/mirror/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/methods/PostMethod.java,v
> retrieving revision 1.27
> diff -u -r1.27 PostMethod.java
> --- src/java/org/apache/commons/httpclient/methods/PostMethod.java	12 
> Nov 2002 09:58:23 -0000	1.27
> +++ src/java/org/apache/commons/httpclient/methods/PostMethod.java	21 
> Nov 2002 13:26:46 -0000
> @@ -746,6 +746,7 @@
>              outstream.write(tmp, 0, i);
>              total += i;
>          }
> +        outstream.write(tmp, 0, 0);
>          if ((this.requestContentLength > 0) && (total < 
> this.requestContentLength)) {
>              throw new IOException("Unexpected end of input stream after "
>                  +total +" bytes (expected "+ 
> this.requestContentLength +" bytes)");



--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message