Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 145c009

Browse files
Stuart Grimshawfernandezpablo85
authored andcommitted
Fix for HttpUrlConnection on pre-Gingerbread Android devices
1 parent 7290116 commit 145c009

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/org/scribe/model/Request.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ private void createConnection() throws IOException
6464
String effectiveUrl = URLUtils.appendParametersToQueryString(url, querystringParams);
6565
if (connection == null)
6666
{
67+
System.setProperty("http.keepAlive", "false");
6768
connection = (HttpURLConnection) new URL(effectiveUrl).openConnection();
6869
}
6970
}

0 commit comments

Comments
 (0)