Skip to content

Commit

Permalink
Use specific user-agent in dnsaas client
Browse files Browse the repository at this point in the history
  • Loading branch information
romcheg committed May 13, 2020
1 parent 8612f8a commit bb21460
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ralph/dns/dnsaas.py
Expand Up @@ -18,7 +18,8 @@ def __init__(self, headers=None):
self.session = requests.Session()
_headers = {
'Authorization': 'Token {}'.format(settings.DNSAAS_TOKEN),
'Content-Type': 'application/json'
'Content-Type': 'application/json',
'User-agent': 'Ralph/DNSaaS/Client'
}
if headers is not None:
_headers.update(headers)
Expand Down

0 comments on commit bb21460

Please sign in to comment.