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
862175b2
Commit
862175b2
authored
Aug 06, 2016
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'weliu-master'
parents
ad3d43b8
e7e3d77c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
29 deletions
+3
-29
genlibtokenlookup.py
genlibtokenlookup.py
+3
-2
lib/nghttp2_hd.c
lib/nghttp2_hd.c
+0
-27
No files found.
genlibtokenlookup.py
View file @
862175b2
...
...
@@ -88,6 +88,7 @@ def build_header(headers):
c
=
k
[
-
1
]
if
c
not
in
ent
:
ent
[
c
]
=
[]
if
k
not
in
ent
[
c
]:
ent
[
c
].
append
(
k
)
return
res
...
...
@@ -106,7 +107,7 @@ def gen_enum():
def
gen_index_header
():
print
'''
\
static in
line in
t32_t lookup_token(const uint8_t *name, size_t namelen) {
static int32_t lookup_token(const uint8_t *name, size_t namelen) {
switch (namelen) {'''
b
=
build_header
(
HEADERS
)
for
size
in
sorted
(
b
.
keys
()):
...
...
lib/nghttp2_hd.c
View file @
862175b2
...
...
@@ -183,9 +183,6 @@ static int32_t lookup_token(const uint8_t *name, size_t namelen) {
}
break
;
case
'h'
:
if
(
lstreq
(
":pat"
,
name
,
4
))
{
return
NGHTTP2_TOKEN__PATH
;
}
if
(
lstreq
(
":pat"
,
name
,
4
))
{
return
NGHTTP2_TOKEN__PATH
;
}
...
...
@@ -222,17 +219,11 @@ static int32_t lookup_token(const uint8_t *name, size_t namelen) {
case
7
:
switch
(
name
[
6
])
{
case
'd'
:
if
(
lstreq
(
":metho"
,
name
,
6
))
{
return
NGHTTP2_TOKEN__METHOD
;
}
if
(
lstreq
(
":metho"
,
name
,
6
))
{
return
NGHTTP2_TOKEN__METHOD
;
}
break
;
case
'e'
:
if
(
lstreq
(
":schem"
,
name
,
6
))
{
return
NGHTTP2_TOKEN__SCHEME
;
}
if
(
lstreq
(
":schem"
,
name
,
6
))
{
return
NGHTTP2_TOKEN__SCHEME
;
}
...
...
@@ -251,24 +242,6 @@ static int32_t lookup_token(const uint8_t *name, size_t namelen) {
}
break
;
case
's'
:
if
(
lstreq
(
":statu"
,
name
,
6
))
{
return
NGHTTP2_TOKEN__STATUS
;
}
if
(
lstreq
(
":statu"
,
name
,
6
))
{
return
NGHTTP2_TOKEN__STATUS
;
}
if
(
lstreq
(
":statu"
,
name
,
6
))
{
return
NGHTTP2_TOKEN__STATUS
;
}
if
(
lstreq
(
":statu"
,
name
,
6
))
{
return
NGHTTP2_TOKEN__STATUS
;
}
if
(
lstreq
(
":statu"
,
name
,
6
))
{
return
NGHTTP2_TOKEN__STATUS
;
}
if
(
lstreq
(
":statu"
,
name
,
6
))
{
return
NGHTTP2_TOKEN__STATUS
;
}
if
(
lstreq
(
":statu"
,
name
,
6
))
{
return
NGHTTP2_TOKEN__STATUS
;
}
...
...
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