Changeset 20891 in osm for applications/editors/josm/plugins
- Timestamp:
- 2010-04-12T15:20:46+02:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/wmsplugin/src/wmsplugin/WMSGrabber.java
r20566 r20891 27 27 import org.openstreetmap.josm.data.coor.LatLon; 28 28 import org.openstreetmap.josm.data.projection.Mercator; 29 import org.openstreetmap.josm.data.Version; 29 30 import org.openstreetmap.josm.gui.MapView; 30 31 import org.openstreetmap.josm.io.CacheFiles; … … 186 187 if(layer.cookies != null && !layer.cookies.equals("")) 187 188 conn.setRequestProperty("Cookie", layer.cookies); 189 conn.setRequestProperty("User-Agent", Main.pref.get("wmsplugin.user_agent", Version.getInstance().getAgentString())); 188 190 conn.setConnectTimeout(Main.pref.getInteger("wmsplugin.timeout.connect", 30) * 1000); 189 191 conn.setReadTimeout(Main.pref.getInteger("wmsplugin.timeout.read", 30) * 1000);
Note:
See TracChangeset
for help on using the changeset viewer.