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 Tue, 30 Sep 2003 04:17:37 GMT
billbarker    2003/09/29 21:17:37

  Modified:    jk/java/org/apache/jk/server JkCoyoteHandler.java
  Log:
  Remove nls from the status line.
  
  Revision  Changes    Path
  1.46      +5 -1      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.45
  retrieving revision 1.46
  diff -u -r1.45 -r1.46
  --- JkCoyoteHandler.java	18 Sep 2003 16:21:02 -0000	1.45
  +++ JkCoyoteHandler.java	30 Sep 2003 04:17:37 -0000	1.46
  @@ -346,7 +346,11 @@
               ep.setNote( tmpMessageBytesNote, mb );
           }
           String message=res.getMessage();
  -        if( message==null ) message= HttpMessages.getMessage(res.getStatus());
  +        if( message==null ){
  +            message= HttpMessages.getMessage(res.getStatus());
  +        } else {
  +            message = message.replace('\n', ' ').replace('\r', ' ');
  +        }
           mb.setString( message );
           c2b.convert( mb );
           msg.appendBytes(mb);
  
  
  

Mime
View raw message