Skip to content

Commit

Permalink
Set user agent of crowdsec misp module to crowdsec-cortex/v1.0.0
Browse files Browse the repository at this point in the history
Signed-off-by: Shivam Sandbhor <[email protected]>
  • Loading branch information
sbs2001 committed Feb 20, 2023
1 parent 8901c2b commit 08efc14
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion analyzers/Crowdsec/crowdsec_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ def _request(self, path: str):
"""
headers = {
"x-api-key": self.api_key ,
"accept": "application/json"
"accept": "application/json",
"User-Agent": "crowdsec-cortex/v1.0.0",
}
url = urljoin(self.base_url, path)
response = requests.get(url, headers=headers)
Expand Down

0 comments on commit 08efc14

Please sign in to comment.