Changeset 17695 in josm


Ignore:
Timestamp:
2021-03-30T20:55:27+02:00 (4 years ago)
Author:
simon04
Message:

TaggingPresetPreferenceTestIT: use HTTP HEAD against wiki.openstreetmap.org

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/gui/preferences/map/TaggingPresetPreferenceTestIT.java

    r17677 r17695  
    115115        presets.parallelStream().flatMap(x -> x.data.stream().filter(i -> i instanceof Link).map(i -> ((Link) i).getUrl())).forEach(u -> {
    116116            try {
    117                 Response cr = HttpClient.create(new URL(u)).setMaxRedirects(-1).connect();
     117                Response cr = HttpClient.create(new URL(u), "HEAD").setMaxRedirects(-1).connect();
    118118                final int code = cr.getResponseCode();
    119119                if (HttpClient.isRedirect(code)) {
Note: See TracChangeset for help on using the changeset viewer.