diff --git a/lib/includes/nghttp2/nghttp2.h b/lib/includes/nghttp2/nghttp2.h index b17017d4..7ea33092 100644 --- a/lib/includes/nghttp2/nghttp2.h +++ b/lib/includes/nghttp2/nghttp2.h @@ -40,7 +40,7 @@ extern "C" { * * The protocol version identification of this library supports. */ -#define NGHTTP2_PROTO_VERSION_ID "HTTP-draft-04/2.0" +#define NGHTTP2_PROTO_VERSION_ID "HTTP-draft-06/2.0" /** * @macro * diff --git a/tests/nghttp2_npn_test.c b/tests/nghttp2_npn_test.c index 1eeae532..f0c9842b 100644 --- a/tests/nghttp2_npn_test.c +++ b/tests/nghttp2_npn_test.c @@ -32,7 +32,7 @@ static void http2(void) { const unsigned char p[] = { 8, 'h', 't', 't', 'p', '/', '1', '.', '1', - 17, 'H', 'T', 'T', 'P', '-', 'd', 'r', 'a', 'f', 't', '-', '0', '4', '/', + 17, 'H', 'T', 'T', 'P', '-', 'd', 'r', 'a', 'f', 't', '-', '0', '6', '/', '2', '.', '0', 6, 's', 'p', 'd', 'y', '/', '3' }; @@ -40,7 +40,7 @@ static void http2(void) unsigned char* out; CU_ASSERT(1 == nghttp2_select_next_protocol(&out, &outlen, p, sizeof(p))); CU_ASSERT(17 == outlen); - CU_ASSERT(memcmp("HTTP-draft-04/2.0", out, outlen) == 0); + CU_ASSERT(memcmp("HTTP-draft-06/2.0", out, outlen) == 0); } static void http11(void)