You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by "CHEN,SHIH-CHANG (HP-NewJersey,ex2)" <sh...@hp.com> on 2002/04/26 15:18:33 UTC
HttpClient problem: duplicate Content-Length headers ...
Hi,
We just found a bug in Apache HttpClient of 4/17 nightly
build. If the server sends back more than one Content-Length
headers ( with same values ), incorrect value, 0, will be used.
The problem is in org.apache.commons.httpclient.HttpMethodBase.
For example, if the server sent 2 "Content-Length: 455" headers,
the header instance will get a value like "455, 455", which
can not be parsed into integer. Attachment is my modified code.
ps. Sometime Tomcat 4.0.3 does response duplicate headers.
thanks,
-chen