Ignore:
Timestamp:
2015-12-26T23:42:00+01:00 (4 years ago)
Author:
simon04
Message:

see #12231 - Use HttpClient instead of some Utils.openHttpConnection usages

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/downloadtasks/DownloadSessionTask.java

    r8921 r9171  
    1313import org.openstreetmap.josm.data.Bounds;
    1414import org.openstreetmap.josm.gui.progress.ProgressMonitor;
    15 import org.openstreetmap.josm.tools.Utils;
     15import org.openstreetmap.josm.tools.HttpClient;
    1616
    1717/**
     
    4545            try {
    4646                URL u = new URL(url);
    47                 loader = new Loader(Utils.openURL(u), u.toURI(), url.endsWith(".joz"));
     47                loader = new Loader(HttpClient.create(u).connect().getContent(), u.toURI(), url.endsWith(".joz"));
    4848                return Main.worker.submit(loader);
    4949            } catch (URISyntaxException | IOException e) {
Note: See TracChangeset for help on using the changeset viewer.