Skip to content

Commit

Permalink
Fixed user_agent assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
BaryshevS authored and joyrex2001 committed May 7, 2022
1 parent 6c73245 commit 593d90f
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions lib/Grpc/Client/BaseStub.pm
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,10 @@ sub new {
my $credentials = $param{"credentials"};
my $timeout = $param{"timeout"};

if (defined($primary_user_agent)) {
$primary_user_agent .= " ";
} else {
$primary_user_agent = "";
unless (defined($primary_user_agent))
$primary_user_agent = "grpc-perl/".($Grpc::XS::VERSION);
}
$primary_user_agent = "grpc-perl/".($Grpc::XS::VERSION);


if (!exists($param{"credentials"})) {
die("The 'credentials' key is now required. Please see one of the ".
"Grpc::XS::ChannelCredentials::create methods");
Expand Down

0 comments on commit 593d90f

Please sign in to comment.