cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1438081 - /cxf/trunk/rt/transports/http-hc/src/main/java/org/apache/cxf/transport/http/asyncclient/CXFHttpAsyncRequestProducer.java
Date Thu, 24 Jan 2013 17:18:39 GMT
Author: dkulp
Date: Thu Jan 24 17:18:39 2013
New Revision: 1438081

URL: http://svn.apache.org/viewvc?rev=1438081&view=rev
Log:
[CXF-4762] Fix hard coded mapping to port 80 which isn't needed and is wrong for https

Modified:
    cxf/trunk/rt/transports/http-hc/src/main/java/org/apache/cxf/transport/http/asyncclient/CXFHttpAsyncRequestProducer.java

Modified: cxf/trunk/rt/transports/http-hc/src/main/java/org/apache/cxf/transport/http/asyncclient/CXFHttpAsyncRequestProducer.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/transports/http-hc/src/main/java/org/apache/cxf/transport/http/asyncclient/CXFHttpAsyncRequestProducer.java?rev=1438081&r1=1438080&r2=1438081&view=diff
==============================================================================
--- cxf/trunk/rt/transports/http-hc/src/main/java/org/apache/cxf/transport/http/asyncclient/CXFHttpAsyncRequestProducer.java
(original)
+++ cxf/trunk/rt/transports/http-hc/src/main/java/org/apache/cxf/transport/http/asyncclient/CXFHttpAsyncRequestProducer.java
Thu Jan 24 17:18:39 2013
@@ -59,11 +59,7 @@ public class CXFHttpAsyncRequestProducer
         if (!uri.isAbsolute()) {
             throw new IllegalStateException("Request URI is not absolute");
         }
-        int i = uri.getPort();
-        if (i == -1) {
-            i = 80;
-        }
-        return new HttpHost(uri.getHost(), i, uri.getScheme());
+        return new HttpHost(uri.getHost(), uri.getPort(), uri.getScheme());
     }
     
     public HttpRequest generateRequest() throws IOException, HttpException {



Mime
View raw message