Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: allows user-agent header with header provider (#871)
* fix: allows user-agent header with header provider A bug was introduced, where if the caller tried to set a custom user agent with a header provider an exception would be thrown (for duplicate keys). Here, we merge the user agent set by the client along with the one set by the library, instead of throwing such exception. * test: adds test for default user agent Tests if the default user agent is present in the user-agent header set in the GapicSpannerRpc class.
- Loading branch information
1 parent
ab14a5e
commit 3de7e2a
Showing
2 changed files
with
63 additions
and
12 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