Changeset 17695 in josm
- Timestamp:
- 2021-03-30T20:55:27+02:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/gui/preferences/map/TaggingPresetPreferenceTestIT.java
r17677 r17695 115 115 presets.parallelStream().flatMap(x -> x.data.stream().filter(i -> i instanceof Link).map(i -> ((Link) i).getUrl())).forEach(u -> { 116 116 try { 117 Response cr = HttpClient.create(new URL(u) ).setMaxRedirects(-1).connect();117 Response cr = HttpClient.create(new URL(u), "HEAD").setMaxRedirects(-1).connect(); 118 118 final int code = cr.getResponseCode(); 119 119 if (HttpClient.isRedirect(code)) {
Note:
See TracChangeset
for help on using the changeset viewer.