Ignore:
Timestamp:
2018-05-30T19:04:15+02:00 (6 years ago)
Author:
wiktorn
Message:

Fix WMS_ENDPOINT headers.

  • Use custom headers when calling GetCapabilities on server
  • Pass custom headers and other imagery attributes after layer selection
  • if GetCapabilities document defines GetMap url, ensure that it ends with '?'

Closes: #16330

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/imagery/WMSEndpointTileSource.java

    r13829 r13872  
    4343        CheckParameterUtil.ensure(info, "imageryType", x -> ImageryType.WMS_ENDPOINT.equals(x.getImageryType()));
    4444        try {
    45             wmsi = new WMSImagery(info.getUrl());
     45            wmsi = new WMSImagery(info.getUrl(), info.getCustomHttpHeaders());
    4646        } catch (IOException | WMSGetCapabilitiesException e) {
    4747            throw new IllegalArgumentException(e);
Note: See TracChangeset for help on using the changeset viewer.