From 46517ae7f2816fec063e38d180b8a2258d40d896 Mon Sep 17 00:00:00 2001 From: Tommy-Carlos Williams Date: Wed, 20 Aug 2014 19:05:11 +1000 Subject: [PATCH] Disables encoding get() URLs by default In our app this is leading to errors on URLs that are already properly encoded (they are being double-encoded... %20 -> %2520, etc) Feel free to ignore or close this one if you need this functionality, but since `post()` URLs were *not* being encoded, I thought it might have just been a default that didn't affect you one way or the other. --- src/android/com/synconset/CordovaHTTP/CordovaHttpGet.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/android/com/synconset/CordovaHTTP/CordovaHttpGet.java b/src/android/com/synconset/CordovaHTTP/CordovaHttpGet.java index a9f14aa..e9c556c 100644 --- a/src/android/com/synconset/CordovaHTTP/CordovaHttpGet.java +++ b/src/android/com/synconset/CordovaHTTP/CordovaHttpGet.java @@ -31,7 +31,7 @@ public class CordovaHttpGet extends CordovaHttp implements Runnable { @Override public void run() { try { - HttpRequest request = HttpRequest.get(this.getUrlString(), this.getParams(), true); + HttpRequest request = HttpRequest.get(this.getUrlString(), this.getParams(), false); this.setupSecurity(request); request.acceptCharset(CHARSET); request.headers(this.getHeaders());