Changeset 31937 in osm for applications/editors/josm/plugins/opendata
- Timestamp:
- 2016-01-04T21:04:42+01:00 (9 years ago)
- Location:
- applications/editors/josm/plugins/opendata
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/opendata/build.xml
r31923 r31937 1 1 <?xml version="1.0" encoding="utf-8"?> 2 2 <project name="opendata" default="dist" basedir="."> 3 <property name="plugin.main.version" value=" 8919"/>3 <property name="plugin.main.version" value="9309"/> 4 4 <property name="plugin.author" value="Don-vip"/> 5 5 <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 82 82 83 83 private Class<? extends AbstractReader> findReaderByAttachment() { 84 String cdisp = this.activeConnection.get HeaderField("Content-disposition");84 String cdisp = this.activeConnection.getResponse().getHeaderField("Content-disposition"); 85 85 if (cdisp != null) { 86 86 Matcher m = Pattern.compile("attachment;.?filename=(.*)").matcher(cdisp); … … 94 94 95 95 private Class<? extends AbstractReader> findReaderByContentType() { 96 String contentType = this.activeConnection.get ContentType();96 String contentType = this.activeConnection.getResponse().getContentType(); 97 97 if (contentType.startsWith("application/zip")) { 98 98 return ZipReader.class;
Note:
See TracChangeset
for help on using the changeset viewer.