Changeset 36156 in osm for applications/editors/josm/plugins
- Timestamp:
- 2023-10-04T15:57:40+02:00 (14 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/pmtiles/src/main/java/org/openstreetmap/josm/plugins/pmtiles/lib/PMTiles.java
r36112 r36156 14 14 import java.util.zip.InflaterInputStream; 15 15 16 import jakarta.json.Json;17 import jakarta.json.JsonObject;18 16 import org.apache.commons.compress.compressors.brotli.BrotliCompressorInputStream; 19 17 import org.apache.commons.compress.compressors.gzip.GzipCompressorInputStream; … … 21 19 import org.openstreetmap.josm.plugins.pmtiles.lib.internal.HeaderParser; 22 20 import org.openstreetmap.josm.tools.Utils; 21 22 import jakarta.json.Json; 23 import jakarta.json.JsonObject; 23 24 24 25 /** … … 273 274 } 274 275 } 275 var request = HttpRequest.newBuilder(location).header("Range", "bytes=" + start + "-" + (start + length ))276 var request = HttpRequest.newBuilder(location).header("Range", "bytes=" + start + "-" + (start + length - 1)) 276 277 .header("User-Agent", "JOSM PMTiles v1").GET().build(); 277 278 try {
Note:
See TracChangeset
for help on using the changeset viewer.