Changeset 5587 in josm for trunk/src/org/openstreetmap/josm/gui/help/HelpContentReader.java
- Timestamp:
- 2012-11-18T00:44:10+01:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/help/HelpContentReader.java
r5266 r5587 9 9 import java.net.URL; 10 10 11 import org.openstreetmap.josm.tools.Utils; 11 12 import org.openstreetmap.josm.tools.WikiReader; 12 13 … … 46 47 */ 47 48 public String fetchHelpTopicContent(String helpTopicUrl, boolean dotest) throws HelpContentReaderException { 48 URL url = null;49 49 HttpURLConnection con = null; 50 50 BufferedReader in = null; 51 51 try { 52 url = new URL(helpTopicUrl); 53 con = (HttpURLConnection)url.openConnection(); 52 con = Utils.openHttpConnection(new URL(helpTopicUrl)); 54 53 con.connect(); 55 54 in = new BufferedReader(new InputStreamReader(con.getInputStream(),"utf-8"));
Note:
See TracChangeset
for help on using the changeset viewer.
