Ignore:
Timestamp:
2012-11-18T00:44:10+01:00 (14 years ago)
Author:
Don-vip
Message:

Single entry point in Utils to open HTTP connections

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/download/PlaceSelection.java

    r5429 r5587  
    5656import org.openstreetmap.josm.tools.ImageProvider;
    5757import org.openstreetmap.josm.tools.OsmUrlToBounds;
     58import org.openstreetmap.josm.tools.Utils;
    5859import org.xml.sax.Attributes;
    5960import org.xml.sax.InputSource;
     
    362363                URL url = new URL(urlString);
    363364                synchronized(this) {
    364                     connection = (HttpURLConnection)url.openConnection();
     365                    connection = Utils.openHttpConnection(url);
    365366                }
    366367                connection.setConnectTimeout(Main.pref.getInteger("socket.timeout.connect",15)*1000);
Note: See TracChangeset for help on using the changeset viewer.