Skip to content

Commit

Permalink
Adding user agent to get request calls (#1023)
Browse files Browse the repository at this point in the history
  • Loading branch information
VoicuAWS authored Nov 12, 2024
1 parent bd7a32e commit 19a9b5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cid/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ def track(self, action, dashboard_id):
logger.debug(f"Issue logging action {action} for dashboard {dashboard_id} , due to a urllib3 exception {str(e)} . This issue will be ignored")

def get_page(self, source):
resp = requests.get(source, timeout=10)
resp = requests.get(source, timeout=10, headers={'User-Agent': 'cid'})
resp.raise_for_status()
return resp

Expand Down

0 comments on commit 19a9b5a

Please sign in to comment.