Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
nghttp2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
nghttp2
Commits
196406da
Commit
196406da
authored
Feb 05, 2014
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change protocol identifier to h2-10
parent
9d8cf9de
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
lib/includes/nghttp2/nghttp2.h
lib/includes/nghttp2/nghttp2.h
+2
-2
tests/nghttp2_npn_test.c
tests/nghttp2_npn_test.c
+2
-3
No files found.
lib/includes/nghttp2/nghttp2.h
View file @
196406da
...
...
@@ -40,13 +40,13 @@ extern "C" {
*
* The protocol version identification of this library supports.
*/
#define NGHTTP2_PROTO_VERSION_ID "
HTTP-draft-09/2.
0"
#define NGHTTP2_PROTO_VERSION_ID "
h2-1
0"
/**
* @macro
*
* The length of :macro:`NGHTTP2_PROTO_VERSION_ID`.
*/
#define NGHTTP2_PROTO_VERSION_ID_LEN
17
#define NGHTTP2_PROTO_VERSION_ID_LEN
5
struct
nghttp2_session
;
/**
...
...
tests/nghttp2_npn_test.c
View file @
196406da
...
...
@@ -33,14 +33,13 @@ 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'
,
'9'
,
'/'
,
'2'
,
'.'
,
'0'
,
5
,
'h'
,
'2'
,
'-'
,
'1'
,
'0'
,
6
,
's'
,
'p'
,
'd'
,
'y'
,
'/'
,
'3'
};
unsigned
char
outlen
;
unsigned
char
*
out
;
CU_ASSERT
(
1
==
nghttp2_select_next_protocol
(
&
out
,
&
outlen
,
p
,
sizeof
(
p
)));
CU_ASSERT
(
17
==
outlen
);
CU_ASSERT
(
NGHTTP2_PROTO_VERSION_ID_LEN
==
outlen
);
CU_ASSERT
(
memcmp
(
NGHTTP2_PROTO_VERSION_ID
,
out
,
outlen
)
==
0
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment