Change protocol ID to h2-lc

This commit is contained in:
Tatsuhiro Tsujikawa 2014-06-12 22:50:13 +09:00
parent 1ee847c21a
commit dd006f8a79
2 changed files with 3 additions and 3 deletions

View File

@ -41,7 +41,7 @@ extern "C" {
* The protocol version identification string of this library
* supports. This identifier is used if HTTP/2 is used over TLS.
*/
#define NGHTTP2_PROTO_VERSION_ID "h2-13"
#define NGHTTP2_PROTO_VERSION_ID "h2-lc"
/**
* @macro
*
@ -56,7 +56,7 @@ extern "C" {
* supports. This identifier is used if HTTP/2 is used over cleartext
* TCP.
*/
#define NGHTTP2_CLEARTEXT_PROTO_VERSION_ID "h2c-13"
#define NGHTTP2_CLEARTEXT_PROTO_VERSION_ID "h2c-lc"
/**
* @macro

View File

@ -33,7 +33,7 @@ static void http2(void)
{
const unsigned char p[] = {
8, 'h', 't', 't', 'p', '/', '1', '.', '1',
5, 'h', '2', '-', '1', '3',
5, 'h', '2', '-', 'l', 'c',
6, 's', 'p', 'd', 'y', '/', '3'
};
unsigned char outlen;