cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject svn commit: r1521115 - /cxf/trunk/rt/rs/client/src/main/java/org/apache/cxf/jaxrs/client/spec/ClientImpl.java
Date Mon, 09 Sep 2013 14:06:21 GMT
Author: sergeyb
Date: Mon Sep  9 14:06:21 2013
New Revision: 1521115

URL: http://svn.apache.org/r1521115
Log:
[CXF-5135] Defaulting to forward slash if target address is empty

Modified:
    cxf/trunk/rt/rs/client/src/main/java/org/apache/cxf/jaxrs/client/spec/ClientImpl.java

Modified: cxf/trunk/rt/rs/client/src/main/java/org/apache/cxf/jaxrs/client/spec/ClientImpl.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/rs/client/src/main/java/org/apache/cxf/jaxrs/client/spec/ClientImpl.java?rev=1521115&r1=1521114&r2=1521115&view=diff
==============================================================================
--- cxf/trunk/rt/rs/client/src/main/java/org/apache/cxf/jaxrs/client/spec/ClientImpl.java
(original)
+++ cxf/trunk/rt/rs/client/src/main/java/org/apache/cxf/jaxrs/client/spec/ClientImpl.java
Mon Sep  9 14:06:21 2013
@@ -89,6 +89,9 @@ public class ClientImpl implements Clien
     
     @Override
     public WebTarget target(String address) {
+        if (address != null && address.isEmpty()) {
+            address = "/";
+        }
         return target(UriBuilder.fromUri(address));
     }
     



Mime
View raw message