The new library allows us to set a specific user agent for calls made using this package, which allows us to tell requests apart from 'pure' library ones.
WHAT is this pull request doing?
It creates a function that makes sure the user agent is set. This function can be called multiple times without messing up the agent, so we are able to call it in multiple entrypoints to this package.
Type of change
[X] Patch: Bug (non-breaking change which fixes an issue)
[ ] Minor: New feature (non-breaking change which adds functionality)
[ ] Major: Breaking change (fix or feature that would cause existing functionality to not work as expected)
Checklist
[x] I have added a changelog entry, prefixed by the type of change noted above
WHY are these changes introduced?
The new library allows us to set a specific user agent for calls made using this package, which allows us to tell requests apart from 'pure' library ones.
WHAT is this pull request doing?
It creates a function that makes sure the user agent is set. This function can be called multiple times without messing up the agent, so we are able to call it in multiple entrypoints to this package.
Type of change
Checklist