craigmcc 00/10/28 12:02:56
Modified: catalina/src/share/org/apache/catalina/connector
ResponseBase.java
Log:
Do not set the default content type to "text/plain", per Servlet 2.3 PFD,
Section 5.2, p. 40.
Revision Changes Path
1.6 +7 -7
jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/connector/ResponseBase.java
Index: ResponseBase.java
===================================================================
RCS file:
/home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/connector/ResponseBase.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- ResponseBase.java 2000/10/16 22:44:16 1.5
+++ ResponseBase.java 2000/10/28 19:02:56 1.6
@@ -1,7 +1,7 @@
/*
- * $Header:
/home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/connector/ResponseBase.java,v
1.5 2000/10/16 22:44:16 craigmcc Exp $
- * $Revision: 1.5 $
- * $Date: 2000/10/16 22:44:16 $
+ * $Header:
/home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/connector/ResponseBase.java,v
1.6 2000/10/28 19:02:56 craigmcc Exp $
+ * $Revision: 1.6 $
+ * $Date: 2000/10/28 19:02:56 $
*
* ====================================================================
*
@@ -88,7 +88,7 @@
* the connector-specific methods need to be implemented.
*
* @author Craig R. McClanahan
- * @version $Revision: 1.5 $ $Date: 2000/10/16 22:44:16 $
+ * @version $Revision: 1.6 $ $Date: 2000/10/28 19:02:56 $
*/
public abstract class ResponseBase
@@ -137,7 +137,7 @@
/**
* The content type associated with this Response.
*/
- protected String contentType = "text/plain";
+ protected String contentType = null;
/**
@@ -452,7 +452,7 @@
// connector is NOT reset when recycling
contentCount = 0;
contentLength = -1;
- contentType = "text/plain";
+ contentType = null;
context = null;
encoding = null;
included = false;
@@ -664,7 +664,7 @@
((ResponseStream) stream).reset();
bufferCount = 0;
contentLength = -1;
- contentType = "text/plain";
+ contentType = null;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]