Set protocol version draft-06
This commit is contained in:
parent
2764c55678
commit
d154faa9ab
|
@ -40,7 +40,7 @@ extern "C" {
|
||||||
*
|
*
|
||||||
* The protocol version identification of this library supports.
|
* 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
|
* @macro
|
||||||
*
|
*
|
||||||
|
|
|
@ -32,7 +32,7 @@ static void http2(void)
|
||||||
{
|
{
|
||||||
const unsigned char p[] = {
|
const unsigned char p[] = {
|
||||||
8, 'h', 't', 't', 'p', '/', '1', '.', '1',
|
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',
|
'2', '.', '0',
|
||||||
6, 's', 'p', 'd', 'y', '/', '3'
|
6, 's', 'p', 'd', 'y', '/', '3'
|
||||||
};
|
};
|
||||||
|
@ -40,7 +40,7 @@ static void http2(void)
|
||||||
unsigned char* out;
|
unsigned char* out;
|
||||||
CU_ASSERT(1 == nghttp2_select_next_protocol(&out, &outlen, p, sizeof(p)));
|
CU_ASSERT(1 == nghttp2_select_next_protocol(&out, &outlen, p, sizeof(p)));
|
||||||
CU_ASSERT(17 == outlen);
|
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)
|
static void http11(void)
|
||||||
|
|
Loading…
Reference in New Issue