- Timestamp:
- 2020-03-01T01:02:24+01:00 (5 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/io
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/NameFinder.java
r13901 r15969 67 67 */ 68 68 public static List<SearchResult> query(final URL url) throws IOException { 69 final HttpClient connection = HttpClient.create(url); 69 final HttpClient connection = HttpClient.create(url) 70 .setAccept("application/xml, */*;q=0.8"); 70 71 Response response = connection.connect(); 71 72 if (response.getResponseCode() >= 400) { -
trunk/src/org/openstreetmap/josm/io/OsmApi.java
r15007 r15969 660 660 try { 661 661 url = new URL(new URL(getBaseUrl()), urlSuffix); 662 final HttpClient client = HttpClient.create(url, requestMethod).keepAlive(false); 662 final HttpClient client = HttpClient.create(url, requestMethod) 663 .keepAlive(false) 664 .setAccept("application/xml, */*;q=0.8"); 663 665 activeConnection = client; 664 666 if (fastFail) { -
trunk/src/org/openstreetmap/josm/io/OsmServerReader.java
r15784 r15969 176 176 177 177 final HttpClient client = HttpClient.create(url, httpMethod) 178 .setAccept("application/xml, */*;q=0.8") 178 179 .setFinishOnCloseOutput(false) 179 180 .setReasonForRequest(reason)
Note:
See TracChangeset
for help on using the changeset viewer.