Skip to content

Commit

Permalink
Identify yourself by user-agent http header when transacting with Falcon
Browse files Browse the repository at this point in the history
  • Loading branch information
isimluk committed Nov 25, 2022
1 parent 9b98d16 commit a21eb0a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fig/falcon/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from .errors import ApiError, NoStreamsError
from .models import Stream
from .rtr import RTRSession
from .. import __version__


class FalconAPI():
Expand All @@ -17,6 +18,7 @@ def __init__(self):
self.client = FalconSDK.APIHarness(creds={
'client_id': config.get('falcon', 'client_id'),
'client_secret': config.get('falcon', 'client_secret')},
user_agent=f"falcon-integration-gateway/{__version__}",
base_url=self.__class__.base_url())

@classmethod
Expand Down

0 comments on commit a21eb0a

Please sign in to comment.