tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hgo...@apache.org
Subject cvs commit: jakarta-tomcat/src/share/org/apache/tomcat/modules/server Ajp12.java
Date Fri, 27 Apr 2001 09:26:42 GMT
hgomez      01/04/27 02:26:42

  Modified:    src/share/org/apache/tomcat/modules/server Ajp12.java
  Log:
  A quick and dirty patch to set SSL scheme in ajp12.
  We check if the web server port was 443 and in that case
  set the scheme to https
  I recommand you to use ajp13 instead :)
  
  Revision  Changes    Path
  1.17      +7 -0      jakarta-tomcat/src/share/org/apache/tomcat/modules/server/Ajp12.java
  
  Index: Ajp12.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/modules/server/Ajp12.java,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- Ajp12.java	2001/03/02 04:49:23	1.16
  +++ Ajp12.java	2001/04/27 09:26:42	1.17
  @@ -183,6 +183,13 @@
   			any.printStackTrace();
   		    }
   		    req.setServerPort( serverPort );
  +
  +                    /* Quick and dirty patch to set https scheme in ajp12
  +                     * but I recommand using ajp13 instead 
  +                     */
  +                    if (serverPort == 443)
  +                       req.scheme().setString("https");
  +
   		    // System.out.println("XXX port: " + req.getServerPort());
   
   		    //server protocol
  
  
  

Mime
View raw message