cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1438087 - /cxf/branches/2.7.x-fixes/rt/transports/http-hc/src/main/java/org/apache/cxf/transport/http/asyncclient/CXFHttpAsyncRequestProducer.java
Date Thu, 24 Jan 2013 17:23:10 GMT
Author: dkulp
Date: Thu Jan 24 17:23:10 2013
New Revision: 1438087

URL: http://svn.apache.org/viewvc?rev=1438087&view=rev
Log:
Merged revisions 1438081 via  git cherry-pick from
https://svn.apache.org/repos/asf/cxf/trunk

........
  r1438081 | dkulp | 2013-01-24 12:18:39 -0500 (Thu, 24 Jan 2013) | 2 lines

  [CXF-4762] Fix hard coded mapping to port 80 which isn't needed and is wrong for https

........

Modified:
    cxf/branches/2.7.x-fixes/rt/transports/http-hc/src/main/java/org/apache/cxf/transport/http/asyncclient/CXFHttpAsyncRequestProducer.java

Modified: cxf/branches/2.7.x-fixes/rt/transports/http-hc/src/main/java/org/apache/cxf/transport/http/asyncclient/CXFHttpAsyncRequestProducer.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.7.x-fixes/rt/transports/http-hc/src/main/java/org/apache/cxf/transport/http/asyncclient/CXFHttpAsyncRequestProducer.java?rev=1438087&r1=1438086&r2=1438087&view=diff
==============================================================================
--- cxf/branches/2.7.x-fixes/rt/transports/http-hc/src/main/java/org/apache/cxf/transport/http/asyncclient/CXFHttpAsyncRequestProducer.java
(original)
+++ cxf/branches/2.7.x-fixes/rt/transports/http-hc/src/main/java/org/apache/cxf/transport/http/asyncclient/CXFHttpAsyncRequestProducer.java
Thu Jan 24 17:23:10 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