diff --git a/pygeoapi_plugins/provider/ckan.py b/pygeoapi_plugins/provider/ckan.py index cd5979f..7d4b08b 100644 --- a/pygeoapi_plugins/provider/ckan.py +++ b/pygeoapi_plugins/provider/ckan.py @@ -244,9 +244,8 @@ def _get_response(self, url, params={}): :returns: STA response """ params.update({'resource_id': self.resource_id}) - - r = self.http.get(url, params=params) - + headers = {'User-Agent': 'pygeoapi_plugins.ckan'} + r = self.http.get(url, params=params, headers=headers) if not r.ok: LOGGER.error('Bad http response code') raise ProviderConnectionError('Bad http response code')