In Tomcat 3.2.0 the getProtocol() method on a ServletRequest
includes CRLF (0x0d 0x0a) in the return value.
Logic relying on string comparison like getProtocol().equals("HTTP/1.0")
won't work anymore.
The problem is in the HttpAdapter.parseHeaderFiled() method, that makes
use of the BuffTool class for parsing the request headers.
A quick solution would be to change the source to:
req.setProtocol( new String( buf, startProto, endProto-startProto
).trim());
Regards,
--
Mark Brouwer
