billbarker 2003/07/13 15:11:07
Modified: src/share/org/apache/tomcat/modules/generators
StaticInterceptor.java
Log:
Clean up the default TRACE handler.
Add a trailing CRLF to the output, and don't use the deprecated method to get the
header.
Revision Changes Path
1.28 +2 -1
jakarta-tomcat/src/share/org/apache/tomcat/modules/generators/StaticInterceptor.java
Index: StaticInterceptor.java
===================================================================
RCS file:
/home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/modules/generators/StaticInterceptor.java,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -r1.27 -r1.28
--- StaticInterceptor.java 12 Jul 2003 08:35:39 -0000 1.27
+++ StaticInterceptor.java 13 Jul 2003 22:11:07 -0000 1.28
@@ -517,9 +517,10 @@
Enumeration headers = req.getHeaderNames();
while( headers.hasMoreElements() ) {
String hName = (String)headers.nextElement();
- String hValue = (String)req.getHeader(hName);
+ String hValue = req.getMimeHeaders().getHeader(name);
resp.append(CRLF).append(hName).append(": ").append(hValue);
}
+ resp.append(CRLF);
res.setContentLength(resp.length());
Writer out = res.getBuffer();
out.write(resp.toString());
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]