Changeset 17076 in josm for trunk/src/org/openstreetmap/josm/tools
- Timestamp:
- 2020-09-30T00:37:18+02:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/HttpClient.java
r16553 r17076 537 537 */ 538 538 public static HttpClient create(URL url, String requestMethod) { 539 if (factory == null) { 540 throw new IllegalStateException("HTTP factory has not been set"); 541 } 539 542 return factory.create(url, requestMethod) 540 543 // #18812: specify `Accept=*/*` to prevent Java from adding `Accept=text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2`
Note:
See TracChangeset
for help on using the changeset viewer.