Changeset 2826 in josm
- Timestamp:
- 2010-01-12T09:21:53+01:00 (15 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/plugins
- Files:
-
- 2 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 } -
trunk/src/org/openstreetmap/josm/plugins/ReadRemotePluginInformationTask.java
r2817 r2826 22 22 23 23 import org.openstreetmap.josm.Main; 24 import org.openstreetmap.josm.data.Version; 24 25 import org.openstreetmap.josm.gui.PleaseWaitRunnable; 25 26 import org.openstreetmap.josm.gui.progress.ProgressMonitor; … … 114 115 synchronized(this) { 115 116 connection = (HttpURLConnection)url.openConnection(); 117 connection.setRequestProperty("Cache-Control", "no-cache"); 118 connection.setRequestProperty("User-Agent",Version.getInstance().getAgentString()); 119 connection.setRequestProperty("Host", url.getHost()); 116 120 } 117 121 in = new BufferedReader(new InputStreamReader(connection.getInputStream(), "UTF-8"));
Note:
See TracChangeset
for help on using the changeset viewer.