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 00:33:55 GMT
craigmcc    01/11/09 16:33:55

  Modified:    catalina/src/share/org/apache/catalina/core
                        StandardEngineValve.java
  Log:
  If an incoming request has an unrecognized hostname (or no hostname at
  all), return status 400 (Bad Request) instead of statsu 500 (Internal
  Server Error), per HTTP 1.1 (RFC 2616), Section 5.2.
  
  Submitted by:  Pier Fumagalli <pier@betaversion.org
  
  Revision  Changes    Path
  1.6       +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.6
  diff -u -r1.5 -r1.6
  --- StandardEngineValve.java	2001/07/22 20:25:08	1.5
  +++ StandardEngineValve.java	2001/11/10 00:33:55	1.6
  @@ -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.6 2001/11/10 00:33:55 craigmcc Exp $
  + * $Revision: 1.6 $
  + * $Date: 2001/11/10 00:33:55 $
    *
    * ====================================================================
    *
  @@ -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.6 $ $Date: 2001/11/10 00:33:55 $
    */
   
   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