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

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

Location:
applications/editors/josm/plugins/opendata
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/opendata/build.xml

    r31923 r31937  
    11<?xml version="1.0" encoding="utf-8"?>
    22<project name="opendata" default="dist" basedir=".">
    3     <property name="plugin.main.version" value="8919"/>
     3    <property name="plugin.main.version" value="9309"/>
    44    <property name="plugin.author" value="Don-vip"/>
    55    <property name="plugin.class" value="org.openstreetmap.josm.plugins.opendata.OdPlugin"/>
  • 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.