Changeset 35020 in osm


Ignore:
Timestamp:
2019-05-30T23:12:00+02:00 (5 years ago)
Author:
donvip
Message:

fix #josm17772 - set a default User-Agent, restore threads to 8

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/OsmTileLoader.java

    r35019 r35020  
    3232    /** Setting key for number of threads */
    3333    public static final String THREADS_SETTING = "jmapviewer.osm-tile-loader.threads";
    34     private static final int DEFAULT_THREADS_NUMBER = 4;
     34    private static final int DEFAULT_THREADS_NUMBER = 8;
    3535    private static int nThreads = DEFAULT_THREADS_NUMBER;
    3636    static {
     
    130130    public OsmTileLoader(TileLoaderListener listener, Map<String, String> headers) {
    131131        this.headers.put("Accept", "text/html, image/png, image/jpeg, image/gif, */*");
     132        this.headers.put("User-Agent", "JMapViewer Java/"+System.getProperty("java.version"));
    132133        if (headers != null) {
    133134            this.headers.putAll(headers);
Note: See TracChangeset for help on using the changeset viewer.