From d235f8d9c50b4c5f04766330fdc7ae1a37a670cd Mon Sep 17 00:00:00 2001 From: Fuhu Xia Date: Fri, 22 Sep 2023 10:03:58 -0400 Subject: [PATCH] detecting Microsoft-IIS server --- ckanext/spatial/harvesters/waf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ckanext/spatial/harvesters/waf.py b/ckanext/spatial/harvesters/waf.py index 4ea3247f..1dd96dee 100644 --- a/ckanext/spatial/harvesters/waf.py +++ b/ckanext/spatial/harvesters/waf.py @@ -271,7 +271,7 @@ def _get_scraper(server): return 'apache' if 'nginx' in server.lower(): return 'nginx' - if server == 'Microsoft-IIS/7.5': + if 'Microsoft-IIS' in server: return 'iis' else: return 'other'