Changeset 29719 in osm for applications/editors
- Timestamp:
- 2013-06-28T04:11:28+02:00 (12 years ago)
- Location:
- applications/editors/josm/plugins/DirectUpload
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/DirectUpload/build.xml
r29718 r29719 5 5 <property name="commit.message" value="applied JOSM Ticket 4498 (patch by ax) - oauth support for gpx upload (I accidentally committed parts of the path in [24236])"/> 6 6 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 7 <property name="plugin.main.version" value="5 053"/>7 <property name="plugin.main.version" value="5587"/> 8 8 9 9 <!-- Configure these properties (replace "..." accordingly). -
applications/editors/josm/plugins/DirectUpload/src/org/openstreetmap/josm/plugins/DirectUpload/UploadDataGui.java
r29718 r29719 42 42 import org.openstreetmap.josm.gui.widgets.HistoryComboBox; 43 43 import org.openstreetmap.josm.io.GpxWriter; 44 import org.openstreetmap.josm.io.OsmApi; 44 45 import org.openstreetmap.josm.tools.GBC; 45 46 import org.openstreetmap.josm.tools.UrlLabel; 47 import org.openstreetmap.josm.tools.Utils; 46 48 47 49 /** … … 96 98 97 99 // Constants used when generating upload request 98 private static final String API_VERSION = "0.6";99 100 private static final String BOUNDARY = "----------------------------d10f7aa230e8"; 100 101 private static final String LINE_END = "\r\n"; … … 285 286 286 287 // Upload URL 287 URL url = new URL( "http://www.openstreetmap.org/api/" + API_VERSION + "/gpx/create");288 URL url = new URL(OsmApi.getOsmApi().getBaseUrl() + "gpx/create"); 288 289 289 290 // Set up connection and log in 290 HttpURLConnection c = (HttpURLConnection) url.openConnection();291 HttpURLConnection c = Utils.openHttpConnection(url); 291 292 c.setFixedLengthStreamingMode(contentLength); 292 293 c.setConnectTimeout(15000);
Note:
See TracChangeset
for help on using the changeset viewer.