Index: OsmServerReader.java
===================================================================
--- OsmServerReader.java	(revision 8466)
+++ OsmServerReader.java	(working copy)
@@ -133,6 +133,7 @@
             } catch(Exception e) {
                 throw new OsmTransferException(tr("Failed to open connection to API {0}.", url.toExternalForm()), e);
             }
+            Utils.setupURLConnection(activeConnection);
             if (cancel) {
                 activeConnection.disconnect();
                 return null;
@@ -147,8 +148,6 @@
                 activeConnection.setRequestProperty("Accept-Encoding", "gzip, deflate");
             }
 
-            activeConnection.setConnectTimeout(Main.pref.getInteger("socket.timeout.connect",15)*1000);
-
             try {
                 if (reason != null && !reason.isEmpty()) {
                     Main.info("GET " + url + " (" + reason + ")");
