Ignore:
Timestamp:
2018-09-01T16:40:32+02:00 (8 years ago)
Author:
Don-vip
Message:

allow to download OSM JSON from RemoteControl

File:
1 edited

Legend:

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

    r14119 r14216  
    4343    private boolean doAuthenticate;
    4444    protected boolean gpxParsedProperly;
     45    protected String contentType;
    4546
    4647    /**
     
    190191            try {
    191192                response = client.connect(progressMonitor);
     193                contentType = response.getContentType();
    192194            } catch (IOException e) {
    193195                Logging.error(e);
     
    210212                    String errorBody = fetchResponseText(response);
    211213                    throw new OsmApiException(response.getResponseCode(), errorHeader, errorBody, url.toString(), null,
    212                             response.getContentType());
     214                            contentType);
    213215                }
    214216
Note: See TracChangeset for help on using the changeset viewer.