Skip to content

Commit

Permalink
feat: adds user agent string
Browse files Browse the repository at this point in the history
refs #63
  • Loading branch information
devraj committed Dec 23, 2024
1 parent 815ded7 commit 0790652
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gallagher/cc/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ def _get_authorization_headers():
"""
from . import api_key
from .. import __version__

if not api_key:
""" API key cannot be empty
Expand All @@ -125,6 +126,7 @@ def _get_authorization_headers():

return {
"Content-Type": "application/json",
"User-Agent": f"GallagherPyToolkit/{__version__}",
"Authorization": f"GGL-API-KEY {api_key}",
}

Expand Down

0 comments on commit 0790652

Please sign in to comment.