Skip to content

Commit

Permalink
ensure user agent is a string
Browse files Browse the repository at this point in the history
  • Loading branch information
ThrawnCA committed Nov 28, 2024
1 parent 955e283 commit 51c60e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckanext/harvest/harvesters/ckanharvester.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def _get_content(self, url):

user_agent = self.config.get('user_agent')
if user_agent:
headers['User-Agent'] = user_agent
headers['User-Agent'] = str(user_agent)

api_key = self.config.get('api_key')
if api_key:
Expand Down

0 comments on commit 51c60e4

Please sign in to comment.