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
10ec0012
Commit
10ec0012
authored
Mar 04, 2016
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
src: Don't process rel=preload again once we found it
parent
2d6211c4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
41 deletions
+43
-41
src/http2.cc
src/http2.cc
+43
-41
No files found.
src/http2.cc
View file @
10ec0012
...
...
@@ -924,6 +924,7 @@ parse_next_link_header_once(const char *first, const char *last) {
// we expect link-param
if
(
!
ign
)
{
if
(
!
ok
)
{
// rel can take several relations using quoted form.
static
constexpr
char
PLP
[]
=
"rel=
\"
"
;
static
constexpr
size_t
PLPLEN
=
str_size
(
PLP
);
...
...
@@ -958,7 +959,7 @@ parse_next_link_header_once(const char *first, const char *last) {
start
=
first
;
}
if
(
first
==
last
)
{
return
{{
StringRef
{}},
fir
st
};
return
{{
StringRef
{}},
la
st
};
}
assert
(
*
first
==
'"'
);
++
first
;
...
...
@@ -972,6 +973,7 @@ parse_next_link_header_once(const char *first, const char *last) {
}
return
{{
StringRef
{}},
last
};
}
}
// we are only interested in rel=preload parameter. Others are
// simply skipped.
static
constexpr
char
PL
[]
=
"rel=preload"
;
...
...
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