any23-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lewi...@apache.org
Subject [1/4] git commit: Fix URL encoding issues when making request - we don't need to re-encode anything there
Date Thu, 29 May 2014 20:07:09 GMT
Repository: any23
Updated Branches:
  refs/heads/master 4aaccd28d -> 76b089a65


Fix URL encoding issues when making request - we don't need to re-encode anything there


Project: http://git-wip-us.apache.org/repos/asf/any23/repo
Commit: http://git-wip-us.apache.org/repos/asf/any23/commit/64ae99b5
Tree: http://git-wip-us.apache.org/repos/asf/any23/tree/64ae99b5
Diff: http://git-wip-us.apache.org/repos/asf/any23/diff/64ae99b5

Branch: refs/heads/master
Commit: 64ae99b591cd369a9f8e7c7ff61880337cf16aa9
Parents: 4249ef3
Author: Eugene Dzhurinsky <jdevelop@gmail.com>
Authored: Wed Dec 25 18:16:10 2013 -0500
Committer: Eugene Dzhurinsky <jdevelop@gmail.com>
Committed: Thu May 8 23:03:21 2014 -0400

----------------------------------------------------------------------
 .../main/java/org/apache/any23/http/DefaultHTTPClient.java   | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/any23/blob/64ae99b5/core/src/main/java/org/apache/any23/http/DefaultHTTPClient.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/org/apache/any23/http/DefaultHTTPClient.java b/core/src/main/java/org/apache/any23/http/DefaultHTTPClient.java
index 027bfa8..967f59f 100644
--- a/core/src/main/java/org/apache/any23/http/DefaultHTTPClient.java
+++ b/core/src/main/java/org/apache/any23/http/DefaultHTTPClient.java
@@ -95,13 +95,9 @@ public class DefaultHTTPClient implements HTTPClient {
                         "%s://%s%s%s%s%s%s",
                         uriObj.getScheme(),
                         uriObj.getAuthority(),
-                        path != null ? URLEncoder.encode(path, "UTF-8").replaceAll("%2F",
"/") : "",
+                        path,
                         query == null ? "" : "?",
-                        query != null ? URLEncoder.encode(query, "UTF-8")
-                                .replaceAll("%3D", "=")
-                                .replaceAll("%26", "&") 
-                            :
-                            "",
+                        query,
                         fragment == null ? "" : "#",
                         fragment != null ? URLEncoder.encode(fragment, "UTF-8") : ""
                 );


Mime
View raw message