Skip to content

Commit

Permalink
Configurable proxy script/server address
Browse files Browse the repository at this point in the history
fixes #146
  • Loading branch information
raitisbe committed Mar 14, 2019
1 parent 6098d21 commit 0f1efc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/utils/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ define(['angular', 'app', 'ol'], function (angular, app, ol) {
if ((url.substring(0, 4) == 'http' && url.indexOf(window.location.origin) == -1) || getPortFromUrl(url) != window.location.port) {
if (typeof use_proxy === 'undefined' || use_proxy === true) {

outUrl = "/cgi-bin/hsproxy.cgi?";
outUrl = config.proxyPrefix || "/cgi-bin/hsproxy.cgi?";
if (toEncoding && (url.indexOf('GetMap') == -1 || url.indexOf('GetFeatureInfo') > -1)) outUrl += "toEncoding=utf-8&";
outUrl = outUrl + "url=" + encodeURIComponent(url);
}
Expand Down

0 comments on commit 0f1efc3

Please sign in to comment.