Get the right ordering of h2, not-h2

pull/4444/head
Craig Tiller 9 years ago
parent ff1e2aa6bd
commit 3a186e70c5
  1. 2
      src/core/transport/chttp2/alpn.c
  2. 2
      test/core/bad_ssl/servers/alpn.c

@ -36,7 +36,7 @@
#include <grpc/support/useful.h>
/* 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;

@ -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;

Loading…
Cancel
Save