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
91ad7e15
Commit
91ad7e15
authored
Apr 19, 2015
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Never indexing still can use header field name in dynamic table
parent
28bde2ce
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
16 deletions
+12
-16
lib/nghttp2_hd.c
lib/nghttp2_hd.c
+12
-16
No files found.
lib/nghttp2_hd.c
View file @
91ad7e15
...
...
@@ -1208,9 +1208,6 @@ static search_result search_hd_table(nghttp2_hd_context *context,
}
}
/* Search dynamic table first, so that we can find recently used
entry first */
if
(
indexing_mode
!=
NGHTTP2_HD_NEVER_INDEXING
)
{
for
(
i
=
0
;
i
<
context
->
hd_table
.
len
;
++
i
)
{
nghttp2_hd_entry
*
ent
=
hd_ringbuf_get
(
&
context
->
hd_table
,
i
);
if
(
ent
->
token
!=
token
||
(
token
==
-
1
&&
!
name_eq
(
&
ent
->
nv
,
nv
)))
{
...
...
@@ -1221,13 +1218,12 @@ static search_result search_hd_table(nghttp2_hd_context *context,
res
.
index
=
(
ssize_t
)(
i
+
NGHTTP2_STATIC_TABLE_LENGTH
);
}
if
(
value_eq
(
&
ent
->
nv
,
nv
))
{
if
(
indexing_mode
!=
NGHTTP2_HD_NEVER_INDEXING
&&
value_eq
(
&
ent
->
nv
,
nv
))
{
res
.
index
=
(
ssize_t
)(
i
+
NGHTTP2_STATIC_TABLE_LENGTH
);
res
.
name_value_match
=
1
;
return
res
;
}
}
}
return
res
;
}
...
...
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