forked from pantsbuild/pants
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use
pants
as the user-agent for report server (pantsbuild#8077)
### Problem When calling the report server, pants leveraging the [python requests](https://2.python-requests.org/) is using the default user agent (for example: `"python-requests/2.22.0"`) This is not optimal, the user-agent should more actuarially reflect the software making the HTTP call ### Solution Use pants as the user-agent, adding the pants version as part of the user-agent header. ### Result ` "Pants/v1.18.0rc0"`
- Loading branch information
1 parent
566c6b6
commit 929474c
Showing
2 changed files
with
10 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters