cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bimargul...@apache.org
Subject svn commit: r702657 - /cxf/trunk/rt/core/src/main/java/org/apache/cxf/transport/http/UrlUtilities.java
Date Tue, 07 Oct 2008 22:23:42 GMT
Author: bimargulies
Date: Tue Oct  7 15:23:41 2008
New Revision: 702657

URL: http://svn.apache.org/viewvc?rev=702657&view=rev
Log:
Fix for CXF-1821 from Will Gomes.

Modified:
    cxf/trunk/rt/core/src/main/java/org/apache/cxf/transport/http/UrlUtilities.java

Modified: cxf/trunk/rt/core/src/main/java/org/apache/cxf/transport/http/UrlUtilities.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/core/src/main/java/org/apache/cxf/transport/http/UrlUtilities.java?rev=702657&r1=702656&r2=702657&view=diff
==============================================================================
--- cxf/trunk/rt/core/src/main/java/org/apache/cxf/transport/http/UrlUtilities.java (original)
+++ cxf/trunk/rt/core/src/main/java/org/apache/cxf/transport/http/UrlUtilities.java Tue Oct
 7 15:23:41 2008
@@ -61,11 +61,11 @@
      */
     public static String getStem(String baseURI) {
         URI uri = URI.create(baseURI);
-        baseURI = uri.getPath();
+        baseURI = uri.getRawPath();
         int idx = baseURI.lastIndexOf('/');
         if (idx != -1) {
             baseURI = baseURI.substring(0, idx);
         }
-        return baseURI;
+        return URI.create(baseURI).getPath();
     }
 }



Mime
View raw message