diff --git a/src/core/transport/chttp2/alpn.c b/src/core/transport/chttp2/alpn.c index cf2079953fa..69da4e6718e 100644 --- a/src/core/transport/chttp2/alpn.c +++ b/src/core/transport/chttp2/alpn.c @@ -36,7 +36,7 @@ #include /* in order of preference */ -static const char *const supported_versions[] = {"not-h2"}; +static const char *const supported_versions[] = {"h2"}; int grpc_chttp2_is_alpn_version_supported(const char *version, size_t size) { size_t i; diff --git a/test/core/bad_ssl/servers/alpn.c b/test/core/bad_ssl/servers/alpn.c index 2623a9e6548..7d70690e52d 100644 --- a/test/core/bad_ssl/servers/alpn.c +++ b/test/core/bad_ssl/servers/alpn.c @@ -46,7 +46,7 @@ * a protocol that the connecting client does not support. It does this by * overriding the functions declared in alpn.c from the core library. */ -static const char *const fake_versions[] = {"h2"}; +static const char *const fake_versions[] = {"not-h2"}; int grpc_chttp2_is_alpn_version_supported(const char *version, size_t size) { size_t i;