-
Notifications
You must be signed in to change notification settings - Fork 310
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DXEX-455] Allow custom headers to be set in Management/Auth Clients.
In order to better determine what version of the Deploy CLI tool is being used by our customers, we would like to include the Deploy CLI's version in the User-agent header as opposed to the current behavior (the version of node under which the CLI is running). The Deploy CLI uses ManagementClient to do its work, but the User-agent header was not configurable before this change. This commit provides a new option called `headers` that will allow the caller to provide an optional set of additional headers to outgoing requests. In the case of the `User-agent` header, if it is not provided by the caller, the original User-agent string will be used (e.g. `node.js/13.1.2`).
- Loading branch information
1 parent
035c4c2
commit 2075875
Showing
4 changed files
with
86 additions
and
8 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
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