tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From billbar...@apache.org
Subject cvs commit: jakarta-tomcat-connectors/jk/java/org/apache/jk/server JkCoyoteHandler.java
Date Sun, 10 Nov 2002 07:25:21 GMT
billbarker    2002/11/09 23:25:21

  Modified:    jk/java/org/apache/jk/server JkCoyoteHandler.java
  Log:
  This time, without the tabs.
  
  Revision  Changes    Path
  1.29      +12 -12    jakarta-tomcat-connectors/jk/java/org/apache/jk/server/JkCoyoteHandler.java
  
  Index: JkCoyoteHandler.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/jk/java/org/apache/jk/server/JkCoyoteHandler.java,v
  retrieving revision 1.28
  retrieving revision 1.29
  diff -u -r1.28 -r1.29
  --- JkCoyoteHandler.java	10 Nov 2002 07:17:13 -0000	1.28
  +++ JkCoyoteHandler.java	10 Nov 2002 07:25:21 -0000	1.29
  @@ -290,18 +290,18 @@
           
           MimeHeaders headers=res.getMimeHeaders();
           String contentType = res.getContentType();
  -	if( contentType != null ) {
  -	    headers.setValue("Content-Type").setString(contentType);
  -	}
  -	String contentLanguage = res.getContentLanguage();
  -	if( contentLanguage != null ) {
  -	    headers.setValue("Content-Language").setString(contentLanguage);
  -	}
  -	int contentLength = res.getContentLength();
  -	if( contentLength >= 0 ) {
  -	    headers.setValue("Content-Length").setInt(contentLength);
  -	}
  -	int numHeaders = headers.size();
  +        if( contentType != null ) {
  +            headers.setValue("Content-Type").setString(contentType);
  +        }
  +        String contentLanguage = res.getContentLanguage();
  +        if( contentLanguage != null ) {
  +            headers.setValue("Content-Language").setString(contentLanguage);
  +        }
  +        int contentLength = res.getContentLength();
  +        if( contentLength >= 0 ) {
  +            headers.setValue("Content-Length").setInt(contentLength);
  +        }
  +        int numHeaders = headers.size();
           msg.appendInt(numHeaders);
           for( int i=0; i<numHeaders; i++ ) {
               MessageBytes hN=headers.getName(i);
  
  
  

--
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