Author: veithen
Date: Thu Jan  1 04:59:09 2009
New Revision: 730539

URL: http://svn.apache.org/viewvc?rev=730539&view=rev
Log:
WSCOMMONS-83: Fixed an issue where TCPMon appended the listenPort instead of 
the targetPort to the outgoing Host header value.

Modified:
    
webservices/commons/trunk/modules/tcpmon/src/org/apache/ws/commons/tcpmon/core/AbstractConnection.java

Modified: 
webservices/commons/trunk/modules/tcpmon/src/org/apache/ws/commons/tcpmon/core/AbstractConnection.java
URL: 
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/tcpmon/src/org/apache/ws/commons/tcpmon/core/AbstractConnection.java?rev=730539&r1=730538&r2=730539&view=diff
==============================================================================
--- 
webservices/commons/trunk/modules/tcpmon/src/org/apache/ws/commons/tcpmon/core/AbstractConnection.java
 (original)
+++ 
webservices/commons/trunk/modules/tcpmon/src/org/apache/ws/commons/tcpmon/core/AbstractConnection.java
 Thu Jan  1 04:59:09 2009
@@ -153,7 +153,6 @@
             String targetHost = config.getTargetHost();
             init(time, fromHost, targetHost);
             int targetPort = config.getTargetPort();
-            int listenPort = config.getListenPort();
             InputStream tmpIn1 = inputStream;
             OutputStream tmpOut1 = null;
             InputStream tmpIn2 = null;
@@ -253,7 +252,7 @@
 
                         // we need to update the hostname to target host
                         String newHost = "Host: " + targetHost + ":"
-                                + listenPort + "\r\n";
+                                + targetPort + "\r\n";
                         bufferedData = bufferedData.concat(newHost);
                         break;
                     }


Reply via email to