Fix for HttpUrlConnection on pre-Gingerbread Android devices
This commit is contained in:
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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user