tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jfarc...@apache.org
Subject cvs commit: jakarta-tomcat-connectors/http11/src/java/org/apache/coyote/http11 Http11Processor.java
Date Mon, 01 Dec 2003 20:44:14 GMT
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: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message