Skip to content

Commit

Permalink
Request Geoserver through http instead of public scheme
Browse files Browse the repository at this point in the history
Fix #57
  • Loading branch information
jirik committed Apr 9, 2020
1 parent 1785e37 commit c0ef39c
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/layman/layer/geoserver/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,10 @@ def wms_proxy(wms_url, xml=None, version=None):
for method in operation.methods:
method_url = urlparse(method['url'])
method_url = method_url._replace(
netloc = settings.LAYMAN_GS_HOST + ':' + settings.LAYMAN_GS_PORT,
path = wms_url_path)
netloc=settings.LAYMAN_GS_HOST + ':' + settings.LAYMAN_GS_PORT,
path=wms_url_path,
scheme='http'
)
method['url'] = method_url.geturl()
return wms

Expand All @@ -79,7 +81,9 @@ def wfs_proxy(wfs_url, xml=None, version=None):
method_url = urlparse(method['url'])
method_url = method_url._replace(
netloc=settings.LAYMAN_GS_HOST + ':' + settings.LAYMAN_GS_PORT,
path=wfs_url_path)
path=wfs_url_path,
scheme='http'
)
method['url'] = method_url.geturl()
except AttributeError:
wfs = None
Expand Down

0 comments on commit c0ef39c

Please sign in to comment.