tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kin...@apache.org
Subject cvs commit: jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler Validator.java
Date Mon, 05 Aug 2002 23:50:27 GMT
kinman      2002/08/05 16:50:27

  Modified:    jasper2/src/share/org/apache/jasper/compiler Tag:
                        tomcat_4_branch Validator.java
  Log:
  - Fix bug in setting the default content type.  Patch by Bob Herrmann.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.11.2.1  +4 -4      jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/Validator.java
  
  Index: Validator.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/Validator.java,v
  retrieving revision 1.11
  retrieving revision 1.11.2.1
  diff -u -r1.11 -r1.11.2.1
  --- Validator.java	8 Jul 2002 17:28:58 -0000	1.11
  +++ Validator.java	5 Aug 2002 23:50:27 -0000	1.11.2.1
  @@ -595,7 +595,7 @@
   	    String charset = pageInfo.getPageEncoding();
   	    if (charset == null)
   		charset = isXml? "UTF-8": "ISO-8859-1";
  -	    pageInfo.setContentType(defaultType + ";" + charset);
  +	    pageInfo.setContentType(defaultType + ";charset=" + charset);
   	}
   
   	/*
  
  
  

--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message