From 9406d9973b93dee6fc78ea6a26658038cdc87f6b Mon Sep 17 00:00:00 2001 From: Cameron Bernhardt Date: Sat, 18 Apr 2015 21:39:51 -0400 Subject: [PATCH] Revert ? encoding fixes (fix #9, fix #2) Bring back fixes introduced in commit 8ed8c6bc8d32f41c738655e51ee746d43a11e258. --- app/controllers/Application.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app/controllers/Application.java b/app/controllers/Application.java index 2e8b121..6e70717 100644 --- a/app/controllers/Application.java +++ b/app/controllers/Application.java @@ -2,7 +2,6 @@ import com.google.gson.GsonBuilder; import org.apache.commons.lang.StringUtils; -import org.yaml.snakeyaml.util.UriEncoder; import play.libs.F; import play.libs.WS; import play.mvc.*; @@ -38,8 +37,7 @@ public static void index() { } public static void get(String url, final String callback) { - final String encodedUrl = UriEncoder.encode(url); - F.Promise remoteCall = WS.url(encodedUrl).getAsync(); + F.Promise remoteCall = WS.url(url).getAsync(); await(remoteCall, new F.Action() { public void invoke(WS.HttpResponse result) { @@ -77,4 +75,4 @@ public static String sanitizeJsonpParam(String s) { if (!s.matches("^jsonp\\d+$")) return null; return s; } -} \ No newline at end of file +}