[wms] More flexible wms format check

This commit is contained in:
amercader 2012-08-13 17:07:59 +01:00
parent a42dcd632f
commit 01d6441886
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ class ViewController(BaseController):
abort(404, 'Dataset not found')
for res in c.pkg.resources:
if res.format == "WMS":
if res.format.lower() == 'wms':
c.wms_url = res.url if not '?' in res.url else res.url.split('?')[0]
break
if not c.wms_url: