Changeset 2826 in josm for trunk/src/org/openstreetmap/josm/plugins/PluginDownloadTask.java
- Timestamp:
- 2010-01-12T09:21:53+01:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/plugins/PluginDownloadTask.java
r2817 r2826 80 80 } 81 81 } 82 83 84 82 85 83 @Override protected void finish() {} … … 112 110 synchronized(this) { 113 111 downloadConnection = (HttpURLConnection)url.openConnection(); 112 downloadConnection.setRequestProperty("Cache-Control", "no-cache"); 113 downloadConnection.setRequestProperty("User-Agent",Version.getInstance().getAgentString()); 114 downloadConnection.setRequestProperty("Host", url.getHost()); 114 115 downloadConnection.connect(); 115 116 }
Note:
See TracChangeset
for help on using the changeset viewer.