Ignore:
Timestamp:
2016-01-04T21:04:42+01:00 (9 years ago)
Author:
simon04
Message:

JOSM/opendata: update due to API change - see #josm12292

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified applications/editors/josm/plugins/opendata/src/org/openstreetmap/josm/plugins/opendata/core/io/NetworkReader.java

    r30795 r31937  
    8282
    8383    private Class<? extends AbstractReader> findReaderByAttachment() {
    84         String cdisp = this.activeConnection.getHeaderField("Content-disposition");
     84        String cdisp = this.activeConnection.getResponse().getHeaderField("Content-disposition");
    8585        if (cdisp != null) {
    8686            Matcher m = Pattern.compile("attachment;.?filename=(.*)").matcher(cdisp);
     
    9494
    9595    private Class<? extends AbstractReader> findReaderByContentType() {
    96         String contentType = this.activeConnection.getContentType();
     96        String contentType = this.activeConnection.getResponse().getContentType();
    9797        if (contentType.startsWith("application/zip")) {
    9898            return ZipReader.class;
Note: See TracChangeset for help on using the changeset viewer.