hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1353253 - /httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/client/utils/URIBuilder.java
Date Sun, 24 Jun 2012 12:26:46 GMT
Author: sebb
Date: Sun Jun 24 12:26:45 2012
New Revision: 1353253

URL: http://svn.apache.org/viewvc?rev=1353253&view=rev
Log:
HTTPCLIENT-1195 - URIBuilder-created query strings are double-escaped
Ensure escapedQuery is not unescaped - fixes failed test testEscapedSpaceInQueryAbsolute

Modified:
    httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/client/utils/URIBuilder.java

Modified: httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/client/utils/URIBuilder.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/client/utils/URIBuilder.java?rev=1353253&r1=1353252&r2=1353253&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/client/utils/URIBuilder.java
(original)
+++ httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/client/utils/URIBuilder.java
Sun Jun 24 12:26:45 2012
@@ -143,7 +143,7 @@ public class URIBuilder {
         this.userInfo = uri.getUserInfo();
         this.encodedPath = uri.getRawPath();
         this.path = uri.getPath();
-        this.encodedQuery = uri.getQuery();
+        this.encodedQuery = uri.getRawQuery();
         this.queryParams = parseQuery(uri.getRawQuery(), Consts.UTF_8);
         this.encodedFragment = uri.getRawFragment();
         this.fragment = uri.getFragment();



Mime
View raw message