Skip to content

Commit

Permalink
Update ckan.py
Browse files Browse the repository at this point in the history
  • Loading branch information
webb-ben committed Oct 15, 2024
1 parent d0668f8 commit da3128c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pygeoapi_plugins/provider/ckan.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit da3128c

Please sign in to comment.