From 48c3c964b1c39cd5e0b85387ac85df38bb9db67b Mon Sep 17 00:00:00 2001 From: ncteisen Date: Tue, 30 Oct 2018 12:05:32 -0700 Subject: supress errors for uri parser --- src/core/ext/transport/chttp2/transport/chttp2_transport.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core/ext/transport') diff --git a/src/core/ext/transport/chttp2/transport/chttp2_transport.cc b/src/core/ext/transport/chttp2/transport/chttp2_transport.cc index c0539a3146..5168e4555e 100644 --- a/src/core/ext/transport/chttp2/transport/chttp2_transport.cc +++ b/src/core/ext/transport/chttp2/transport/chttp2_transport.cc @@ -400,7 +400,7 @@ static bool read_channel_args(grpc_chttp2_transport* t, char* host = nullptr; int port_num = -1; // try to pick out just the host port (maybe trims off scheme prefix). - grpc_uri* uri = grpc_uri_parse(t->peer_string, false); + grpc_uri* uri = grpc_uri_parse(t->peer_string, true); // if peer string was a valid URI, we can use our lib to do the trimming. if (uri != nullptr) { const char* host_port = uri->path; -- cgit v1.2.3