Changeset 7267 in josm for trunk/src/org
- Timestamp:
- 2014-06-24T22:23:23+02:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/OsmServerReader.java
r7082 r7267 216 216 217 217 private InputStream uncompressAccordingToContentDisposition(InputStream stream, Map<String, List<String>> headerFields) throws IOException { 218 if (headerFields.get("Content-Disposition").toString().contains(".gz\"")) { 218 List<String> field = headerFields.get("Content-Disposition"); 219 if (field != null && field.toString().contains(".gz\"")) { 219 220 return Compression.GZIP.getUncompressedInputStream(stream); 220 } else if ( headerFields.get("Content-Disposition").toString().contains(".bz2\"")) {221 } else if (field != null && field.toString().contains(".bz2\"")) { 221 222 return Compression.BZIP2.getUncompressedInputStream(stream); 222 223 } else {
Note:
See TracChangeset
for help on using the changeset viewer.