mirror of
https://github.com/nghttp2/nghttp2.git
synced 2025-12-07 02:28:53 +08:00
Announce h2, final HTTP/2 ALPN identifier
This commit is contained in:
@@ -30,9 +30,8 @@
|
||||
#include <nghttp2/nghttp2.h>
|
||||
|
||||
static void http2(void) {
|
||||
const unsigned char p[] = {8, 'h', 't', 't', 'p', '/', '1', '.',
|
||||
'1', 5, 'h', '2', '-', '1', '4', 6,
|
||||
's', 'p', 'd', 'y', '/', '3'};
|
||||
const unsigned char p[] = {8, 'h', 't', 't', 'p', '/', '1', '.', '1', 2,
|
||||
'h', '2', 6, 's', 'p', 'd', 'y', '/', '3'};
|
||||
unsigned char outlen;
|
||||
unsigned char *out;
|
||||
CU_ASSERT(1 == nghttp2_select_next_protocol(&out, &outlen, p, sizeof(p)));
|
||||
|
||||
Reference in New Issue
Block a user