tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From e.@locus.apache.org
Subject cvs commit: jakarta-tomcat/src/share/org/apache/tomcat/util RequestUtil.java
Date Thu, 15 Jun 2000 18:58:22 GMT
ed          00/06/15 11:58:21

  Modified:    src/share/org/apache/tomcat/util RequestUtil.java
  Log:
  Fix the line used to truncate charset information from the content-type.
  Previously, it had an OBOE.
  
  Submitted by:	Chris Sokol <CSokol@shootinggallery.com>
  Reviewed by:	Ed Korthof <ed@apache.org>
  
  Revision  Changes    Path
  1.12      +1 -1      jakarta-tomcat/src/share/org/apache/tomcat/util/RequestUtil.java
  
  Index: RequestUtil.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/util/RequestUtil.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- RequestUtil.java	2000/05/30 06:16:55	1.11
  +++ RequestUtil.java	2000/06/15 18:58:19	1.12
  @@ -86,7 +86,7 @@
           String contentType=request.getContentType();
   	if (contentType != null) {
               if (contentType.indexOf(";")>0)
  -                contentType=contentType.substring(0,contentType.indexOf(";")-1);
  +                contentType=contentType.substring(0,contentType.indexOf(";"));
               contentType = contentType.toLowerCase().trim();
           }
   
  
  
  

Mime
View raw message