tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject cvs commit: jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/connector/http HttpResponseStream.java
Date Wed, 20 Feb 2002 23:00:18 GMT
remm        02/02/20 15:00:18

  Modified:    catalina/src/share/org/apache/catalina/connector/http
                        HttpResponseStream.java
  Log:
  - Code cleanup, submitted by Paul Speed.
  
  Revision  Changes    Path
  1.13      +4 -5      jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/connector/http/HttpResponseStream.java
  
  Index: HttpResponseStream.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/connector/http/HttpResponseStream.java,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- HttpResponseStream.java	20 Feb 2002 19:24:38 -0000	1.12
  +++ HttpResponseStream.java	20 Feb 2002 23:00:18 -0000	1.13
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/connector/http/HttpResponseStream.java,v
1.12 2002/02/20 19:24:38 remm Exp $
  - * $Revision: 1.12 $
  - * $Date: 2002/02/20 19:24:38 $
  + * $Header: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/connector/http/HttpResponseStream.java,v
1.13 2002/02/20 23:00:18 remm Exp $
  + * $Revision: 1.13 $
  + * $Date: 2002/02/20 23:00:18 $
    *
    * ====================================================================
    *
  @@ -250,8 +250,7 @@
       protected void checkHead(HttpResponseImpl response) {
           HttpServletRequest servletRequest = 
               (HttpServletRequest) response.getRequest();
  -        if ((servletRequest.getMethod() != null) 
  -            && (servletRequest.getMethod().equals("HEAD"))) {
  +        if ("HEAD".equals(servletRequest.getMethod())) {
               writeContent = false;
           } else {
               writeContent = true;
  
  
  

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