Ignore:
Timestamp:
2016-11-16T13:53:46+01:00 (3 years ago)
Author:
simon04
Message:

fix #13982 - Wrong links to OSM website if different API is used

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/OsmServerHistoryReader.java

    r10212 r11262  
    6161        try {
    6262            progressMonitor.indeterminateSubTask(tr("Contacting OSM Server..."));
    63             StringBuilder sb = new StringBuilder();
    64             sb.append(primitiveType.getAPIName())
    65             .append('/').append(id).append("/history");
     63            final String urlStr = primitiveType.getAPIName() + '/' + id + "/history";
    6664
    67             try (InputStream in = getInputStream(sb.toString(), progressMonitor.createSubTaskMonitor(1, true))) {
     65            try (InputStream in = getInputStream(urlStr, progressMonitor.createSubTaskMonitor(1, true))) {
    6866                if (in == null)
    6967                    return null;
Note: See TracChangeset for help on using the changeset viewer.