Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(HttpClient)!: keep User-Agent on headers
If User-Agent is given via headers, but is not given via options, keep the headers User-Agent instead of replacing it with restify-clients UA. This change makes User-Agent handling more aligned with how restify-clients deals with other headers which can be overriten by options. The reasoning behind this is in cases where restify-clients is acting like a forward-proxy of sorts. If User-Agent is present in headers there's probably a request forwarding happening.
- Loading branch information
Showing
2 changed files
with
29 additions
and
3 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