Fix for HttpUrlConnection on pre-Gingerbread Android devices

This commit is contained in:
Stuart Grimshaw authored and Pablo Fernandez committed 2011-03-30 00:24:12 -03:00
1 parent 72901165f8
commit 145c009fc3
1 file changed
+1
@@ -64,6 +64,7 @@ class Request
String effectiveUrl = URLUtils.appendParametersToQueryString(url, querystringParams);
if (connection == null)
{
System.setProperty("http.keepAlive", "false");
connection = (HttpURLConnection) new URL(effectiveUrl).openConnection();
}
}