On Fri, 2007-11-16 at 13:14 +0100, Johannes Koch wrote:
> Hi,
> 
> the method hasProtocolVersion in o.a.h.message.BaseLineParser 
> (httpcore-alpha6) throws an IndexOutOfBoundsException which is not 
> cahught by the parseHead method in the 
> o.a.h.impl.conn.DefaultResponseParser. Is this intentional?
> 

No, it is not.

> This happens e.g. when making a request to http://google.com (Note: no 
> '/' at the end). BTW, are applications using HttpClient expected to add 
> a '/' if the path component of the URI is null? Or should this be the 
> responsibility of HttpClient?
> 

HttpClient should be intelligent enough to handle cases like that.
Please open a JIRA for this issue. It is clearly a bug in HttpClient (or
HttpCore).

Oleg  


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to