tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robin Meade <rme...@outreach.hawaii.edu>
Subject [PATCH] for parsing of protocol in HttpRequestAdapter
Date Sat, 03 Jun 2000 21:36:49 GMT
I noticed in the output of SnoopServlet that request.getProtocol() was 
returning "HTTP/1.0\r\n".

Here is a fix:

Index: HttpRequestAdapter.java
===================================================================
RCS file: /home/cvspublic/jakarta-tomcat/src/share/org/apache/tomcat/service/http/HttpRequestAdapter.java,v
retrieving revision 1.16
diff -r1.16 HttpRequestAdapter.java
305c305,308
< 		|| (buf[off] == (byte) '\t')) {
---
> 		|| (buf[off] == (byte) '\t')
> 		// Added these two lines so that protocol doesn't include '\r' and/or '\n'
> 		|| (buf[off] == (byte) '\r')
> 		|| (buf[off] == (byte) '\n')) {

Mime
View raw message