mirror of
https://github.com/f-droid/fdroidclient.git
synced 2026-04-21 15:29:18 -04:00
swap connections fail with strange errors with keep-alive enabled
This commit is contained in:
@@ -167,6 +167,7 @@ public class HttpDownloader extends Downloader {
|
||||
if (isSwapUrl(sourceUrl)) {
|
||||
// swap never works with a proxy, its unrouted IP on the same subnet
|
||||
connection = (HttpURLConnection) sourceUrl.openConnection();
|
||||
connection.setRequestProperty("Connection", "Close"); // avoid keep-alive
|
||||
} else {
|
||||
if (queryString != null) {
|
||||
connection = NetCipher.getHttpURLConnection(new URL(urlString + "?" + queryString));
|
||||
|
||||
Reference in New Issue
Block a user