tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From craig...@locus.apache.org
Subject cvs commit: jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/connector HttpResponseBase.java
Date Fri, 13 Oct 2000 05:40:19 GMT
craigmcc    00/10/12 22:40:17

  Modified:    catalina/src/share/org/apache/catalina/connector
                        HttpResponseBase.java
  Log:
  When processing a sendError(), current expert group thinking is that the
  container should *not* try to set a default content type if one has not been
  set, so comment this logic out.
  
  Revision  Changes    Path
  1.14      +6 -4      jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/connector/HttpResponseBase.java
  
  Index: HttpResponseBase.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/connector/HttpResponseBase.java,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- HttpResponseBase.java	2000/10/07 18:45:40	1.13
  +++ HttpResponseBase.java	2000/10/13 05:40:16	1.14
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/connector/HttpResponseBase.java,v
1.13 2000/10/07 18:45:40 remm Exp $
  - * $Revision: 1.13 $
  - * $Date: 2000/10/07 18:45:40 $
  + * $Header: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/connector/HttpResponseBase.java,v
1.14 2000/10/13 05:40:16 craigmcc Exp $
  + * $Revision: 1.14 $
  + * $Date: 2000/10/13 05:40:16 $
    *
    * ====================================================================
    *
  @@ -96,7 +96,7 @@
    * methods need to be implemented.
    *
    * @author Craig R. McClanahan
  - * @version $Revision: 1.13 $ $Date: 2000/10/07 18:45:40 $
  + * @version $Revision: 1.14 $ $Date: 2000/10/13 05:40:16 $
    */
   
   public class HttpResponseBase
  @@ -915,9 +915,11 @@
   	resetBuffer();
   
   	// Cause the response to be committed
  +        /* Per spec clarification, no default content type is set
   	String contentType = getContentType();
   	if ((contentType == null) || "text/plain".equals(contentType))
   	    setContentType("text/html");
  +        */
   	try {
   	    flushBuffer();
   	} catch (IOException e) {
  
  
  

Mime
View raw message