Skip to content

Commit

Permalink
EVWHS fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pjdufour committed Aug 25, 2015
1 parent e3effbe commit 1483c8b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/common/addlayers/ServerService.js
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,8 @@ var SERVER_SERVICE_USE_PROXY = true;
url = server.virtualServiceUrl;
}

url += '?SERVICE=WMS&REQUEST=GetCapabilities';
var iqm = url.indexOf('?')
var url_getcaps = url + (iqm >= 0 ? (iqm-1 == url.length ? '' : '&') : '?') + 'SERVICE=WMS&REQUEST=GetCapabilities';

server.populatingLayersConfig = true;
var config = {};
Expand All @@ -549,7 +550,7 @@ var SERVER_SERVICE_USE_PROXY = true;
config.headers['Authorization'] = '';
}
// server hasn't been added yet, so specify the auth headers here
http_.get(url, config).then(function(xhr) {
http_.get(url_getcaps, config).then(function(xhr) {
if (xhr.status === 200) {
var response = parser.read(xhr.data);
if (goog.isDefAndNotNull(response.Capability) &&
Expand Down

0 comments on commit 1483c8b

Please sign in to comment.