tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From craig...@apache.org
Subject cvs commit: jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/core StandardEngineValve.java
Date Sat, 10 Nov 2001 01:01:44 GMT
craigmcc    01/11/09 17:01:44

  Modified:    catalina/src/share/org/apache/catalina/core Tag:
                        tomcat_40_branch StandardEngineValve.java
  Log:
  Backport the HTTP/1.1 compliance fix to send 400 (bad request) instead of
  500 (internal server error) on an unrecognized or missing host.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.5.2.1   +5 -5      jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/core/StandardEngineValve.java
  
  Index: StandardEngineValve.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/core/StandardEngineValve.java,v
  retrieving revision 1.5
  retrieving revision 1.5.2.1
  diff -u -r1.5 -r1.5.2.1
  --- StandardEngineValve.java	2001/07/22 20:25:08	1.5
  +++ StandardEngineValve.java	2001/11/10 01:01:44	1.5.2.1
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/core/StandardEngineValve.java,v
1.5 2001/07/22 20:25:08 pier Exp $
  - * $Revision: 1.5 $
  - * $Date: 2001/07/22 20:25:08 $
  + * $Header: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/core/StandardEngineValve.java,v
1.5.2.1 2001/11/10 01:01:44 craigmcc Exp $
  + * $Revision: 1.5.2.1 $
  + * $Date: 2001/11/10 01:01:44 $
    *
    * ====================================================================
    *
  @@ -86,7 +86,7 @@
    * when processing HTTP requests.
    *
    * @author Craig R. McClanahan
  - * @version $Revision: 1.5 $ $Date: 2001/07/22 20:25:08 $
  + * @version $Revision: 1.5.2.1 $ $Date: 2001/11/10 01:01:44 $
    */
   
   final class StandardEngineValve
  @@ -153,7 +153,7 @@
           Host host = (Host) engine.map(request, true);
           if (host == null) {
               ((HttpServletResponse) response.getResponse()).sendError
  -                (HttpServletResponse.SC_INTERNAL_SERVER_ERROR,
  +                (HttpServletResponse.SC_BAD_REQUEST,
                    sm.getString("standardEngine.noHost",
                                 request.getRequest().getServerName()));
               return;
  
  
  

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