Doh, thanks... obviously misread that line. Well, any ideas then why the code is ignoring the content-length and just reads from the stream until the JVM dies?
Serge Knystautas Loki Technologies - Unstoppable Websites http://www.lokitech.com/ ----- Original Message ----- From: "Andreas Erz" <[EMAIL PROTECTED]> To: "Jakarta Commons Developers List" <[EMAIL PROTECTED]> Sent: Monday, January 28, 2002 5:07 PM Subject: Re: HttpClient OutOfMemory continued > Serge Knystautas wrote: > SK> HttpMethodBase Line 1055: calls getResponseHeader with "Content-Length"... > SK> should be "content-length" since getResponseHeader returns all lower case > SK> HttpMethodBase Line 1056: same thing, different header > SK> HttpMethodBase Line 454: same thing, different header > SK> GetMethod Line 387: same thing, Content-Length again, and I think the source > > getResponseHeader consists of this line: > return (Header)(responseHeaders.get(headerName.toLowerCase())); > > The header names are converted to lower case before looking up the > values, so this does not seem to be a reason for a problem reading the > headers. > > -- > Andreas Erz > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
