Changeset 9168 in josm for trunk/src/org/openstreetmap/josm/tools
- Timestamp:
- 2015-12-26T23:41:52+01:00 (8 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/tools
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/WikiReader.java
r8933 r9168 53 53 public String read(String url) throws IOException { 54 54 URL u = new URL(url); 55 try (BufferedReader in = Utils.openURLReader(u)) {55 try (BufferedReader in = HttpClient.create(u).connect().getContentReader()) { 56 56 boolean txt = url.endsWith("?format=txt"); 57 57 if (url.startsWith(getBaseUrlWiki()) && !txt) … … 98 98 99 99 private String readLang(URL url) throws IOException { 100 try (BufferedReader in = Utils.openURLReader(url)) {100 try (BufferedReader in = HttpClient.create(url).connect().getContentReader()) { 101 101 return readFromTrac(in, url); 102 } catch (IOException e) {103 Main.addNetworkError(url, Utils.getRootCause(e));104 throw e;105 102 } 106 103 }
Note: See TracChangeset
for help on using the changeset viewer.