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
d154faa9
Commit
d154faa9
authored
Aug 22, 2013
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set protocol version draft-06
parent
2764c556
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
lib/includes/nghttp2/nghttp2.h
lib/includes/nghttp2/nghttp2.h
+1
-1
tests/nghttp2_npn_test.c
tests/nghttp2_npn_test.c
+2
-2
No files found.
lib/includes/nghttp2/nghttp2.h
View file @
d154faa9
...
...
@@ -40,7 +40,7 @@ extern "C" {
*
* The protocol version identification of this library supports.
*/
#define NGHTTP2_PROTO_VERSION_ID "HTTP-draft-0
4
/2.0"
#define NGHTTP2_PROTO_VERSION_ID "HTTP-draft-0
6
/2.0"
/**
* @macro
*
...
...
tests/nghttp2_npn_test.c
View file @
d154faa9
...
...
@@ -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-0
4
/2.0"
,
out
,
outlen
)
==
0
);
CU_ASSERT
(
memcmp
(
"HTTP-draft-0
6
/2.0"
,
out
,
outlen
)
==
0
);
}
static
void
http11
(
void
)
...
...
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