Changeset 20891 in osm for applications/editors/josm


Ignore:
Timestamp:
2010-04-12T15:20:46+02:00 (15 years ago)
Author:
vsandre
Message:

costum agent

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/wmsplugin/src/wmsplugin/WMSGrabber.java

    r20566 r20891  
    2727import org.openstreetmap.josm.data.coor.LatLon;
    2828import org.openstreetmap.josm.data.projection.Mercator;
     29import org.openstreetmap.josm.data.Version;
    2930import org.openstreetmap.josm.gui.MapView;
    3031import org.openstreetmap.josm.io.CacheFiles;
     
    186187        if(layer.cookies != null && !layer.cookies.equals(""))
    187188            conn.setRequestProperty("Cookie", layer.cookies);
     189        conn.setRequestProperty("User-Agent", Main.pref.get("wmsplugin.user_agent", Version.getInstance().getAgentString()));
    188190        conn.setConnectTimeout(Main.pref.getInteger("wmsplugin.timeout.connect", 30) * 1000);
    189191        conn.setReadTimeout(Main.pref.getInteger("wmsplugin.timeout.read", 30) * 1000);
Note: See TracChangeset for help on using the changeset viewer.