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/io/imagery/WMSImagery.java

    r13829 r13872  
    432432                        // TODO should we handle also POST?
    433433                        if ("GET".equalsIgnoreCase(mode) && getMapUrl != null && !"".equals(getMapUrl)) {
    434                             this.getMapUrl = getMapUrl;
     434                            if (getMapUrl.endsWith("?")) {
     435                                this.getMapUrl = getMapUrl;
     436                            } else {
     437                                this.getMapUrl = getMapUrl + "?";
     438                            }
    435439                        }
    436440                    }
Note: See TracChangeset for help on using the changeset viewer.