jfarcand    2003/12/01 12:44:14

  Modified:    http11/src/java/org/apache/coyote/http11
                        Http11Processor.java
  Log:
  Use the socket info instead of hardcoded value. HttpServletRequest.getLocalPort() is 
currently broken if the port are not the default one.
  
  Revision  Changes    Path
  1.89      +4 -4      
jakarta-tomcat-connectors/http11/src/java/org/apache/coyote/http11/Http11Processor.java
  
  Index: Http11Processor.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-tomcat-connectors/http11/src/java/org/apache/coyote/http11/Http11Processor.java,v
  retrieving revision 1.88
  retrieving revision 1.89
  diff -u -r1.88 -r1.89
  --- Http11Processor.java      21 Nov 2003 21:10:21 -0000      1.88
  +++ Http11Processor.java      1 Dec 2003 20:44:14 -0000       1.89
  @@ -1294,11 +1294,11 @@
   
           if (colonPos < 0) {
               if (sslSupport == null) {
  -                // 80 - Default HTTTP port
  -                request.setServerPort(80);
  +                // Default HTTTP port
  +                request.setServerPort(socket.getLocalPort());
               } else {
  -                // 443 - Default HTTPS port
  -                request.setServerPort(443);
  +                // Default HTTPS port
  +                request.setServerPort(socket.getLocalPort());
               }
               request.serverName().setChars(hostNameC, 0, valueL);
           } else {
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to