File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
main/java/io/grpc/internal
test/java/io/grpc/internal Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -433,6 +433,7 @@ public static String getGrpcUserAgent(
433433 }
434434 builder .append ("grpc-java-" );
435435 builder .append (transportName );
436+ builder .append ('/' );
436437 builder .append (IMPLEMENTATION_VERSION );
437438 return builder .toString ();
438439 }
Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ public void timeoutTest() {
117117
118118 @ Test
119119 public void grpcUserAgent () {
120- assertTrue (GrpcUtil .getGrpcUserAgent ("netty" , null ).startsWith ("grpc-java-netty" ));
120+ assertTrue (GrpcUtil .getGrpcUserAgent ("netty" , null ).startsWith ("grpc-java-netty/ " ));
121121 assertTrue (GrpcUtil .getGrpcUserAgent ("okhttp" , "libfoo/1.0" )
122122 .startsWith ("libfoo/1.0 grpc-java-okhttp" ));
123123 }
You can’t perform that action at this time.
0 commit comments