tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cos...@apache.org
Subject cvs commit: jakarta-tomcat/src/share/org/apache/tomcat/modules/loggers AccessLogInterceptor.java
Date Sun, 26 Aug 2001 01:53:26 GMT
costin      01/08/25 18:53:26

  Modified:    src/share/org/apache/tomcat/modules/loggers
                        AccessLogInterceptor.java
  Log:
  Use the Content-Length header, no need to String->int->String conversions.
  
  Revision  Changes    Path
  1.3       +3 -2      jakarta-tomcat/src/share/org/apache/tomcat/modules/loggers/AccessLogInterceptor.java
  
  Index: AccessLogInterceptor.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/modules/loggers/AccessLogInterceptor.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- AccessLogInterceptor.java	2001/06/08 03:04:33	1.2
  +++ AccessLogInterceptor.java	2001/08/26 01:53:26	1.3
  @@ -235,8 +235,9 @@
   				fw.write(request.protocol().toString().trim());
   				break;
   			    case 'b':
  -				int len = response.getContentLength();
  -				fw.write(Integer.toString(len));
  +				String cl=response.getMimeHeaders().
  +				    getHeader("Content-Length").toString();
  +				fw.write(cl);
   				break;
   			    case 's':
   				fw.write(Integer.
  
  
  

Mime
View raw message