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
e0119452
Commit
e0119452
authored
Aug 09, 2016
by
Wenfeng Liu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use memeq() instead of lstreq() in lookup_token().
parent
af9aeee7
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
58 additions
and
58 deletions
+58
-58
genlibtokenlookup.py
genlibtokenlookup.py
+1
-1
lib/nghttp2_hd.c
lib/nghttp2_hd.c
+57
-57
No files found.
genlibtokenlookup.py
View file @
e0119452
...
...
@@ -122,7 +122,7 @@ static int32_t lookup_token(const uint8_t *name, size_t namelen) {
case '{}':'''
.
format
(
c
)
for
k
in
headers
:
print
'''
\
if (
lstr
eq("{}", name, {})) {{
if (
mem
eq("{}", name, {})) {{
return {};
}}'''
.
format
(
k
[:
-
1
],
size
-
1
,
to_enum_hd
(
k
))
print
'''
\
...
...
lib/nghttp2_hd.c
View file @
e0119452
This diff is collapsed.
Click to expand it.
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