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
a8ea86cf
Commit
a8ea86cf
authored
Apr 12, 2015
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
src: constexpr
parent
7451a73d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
src/http2.cc
src/http2.cc
+10
-10
No files found.
src/http2.cc
View file @
a8ea86cf
...
...
@@ -779,11 +779,11 @@ parse_next_link_header_once(const char *first, const char *last) {
// we expect link-param
// rel can take several relations using quoted form.
static
const
char
PLP
[]
=
"rel=
\"
"
;
static
const
size_t
PLPLEN
=
sizeof
(
PLP
)
-
1
;
static
const
expr
char
PLP
[]
=
"rel=
\"
"
;
static
const
expr
size_t
PLPLEN
=
sizeof
(
PLP
)
-
1
;
static
const
char
PLT
[]
=
"preload"
;
static
const
size_t
PLTLEN
=
sizeof
(
PLT
)
-
1
;
static
const
expr
char
PLT
[]
=
"preload"
;
static
const
expr
size_t
PLTLEN
=
sizeof
(
PLT
)
-
1
;
if
(
first
+
PLPLEN
<
last
&&
*
(
first
+
PLPLEN
-
1
)
==
'"'
&&
std
::
equal
(
PLP
,
PLP
+
PLPLEN
,
first
,
util
::
CaseCmp
()))
{
// we have to search preload in whitespace separated list:
...
...
@@ -828,8 +828,8 @@ parse_next_link_header_once(const char *first, const char *last) {
}
// we are only interested in rel=preload parameter. Others are
// simply skipped.
static
const
char
PL
[]
=
"rel=preload"
;
static
const
size_t
PLLEN
=
sizeof
(
PL
)
-
1
;
static
const
expr
char
PL
[]
=
"rel=preload"
;
static
const
expr
size_t
PLLEN
=
sizeof
(
PL
)
-
1
;
if
(
first
+
PLLEN
==
last
)
{
if
(
std
::
equal
(
PL
,
PL
+
PLLEN
,
first
,
util
::
CaseCmp
()))
{
ok
=
true
;
...
...
@@ -858,16 +858,16 @@ parse_next_link_header_once(const char *first, const char *last) {
}
}
// we have to reject URI if we have nonempty anchor parameter.
static
const
char
ANCHOR
[]
=
"anchor="
;
static
const
size_t
ANCHORLEN
=
sizeof
(
ANCHOR
)
-
1
;
static
const
expr
char
ANCHOR
[]
=
"anchor="
;
static
const
expr
size_t
ANCHORLEN
=
sizeof
(
ANCHOR
)
-
1
;
if
(
!
ign
&&
!
check_link_param_empty
(
first
,
last
,
ANCHOR
,
ANCHORLEN
))
{
ign
=
true
;
}
// reject URI if we have non-empty loadpolicy. This could be
// tightened up to just pick up "next" or "insert".
static
const
char
LOADPOLICY
[]
=
"loadpolicy="
;
static
const
size_t
LOADPOLICYLEN
=
sizeof
(
LOADPOLICY
)
-
1
;
static
const
expr
char
LOADPOLICY
[]
=
"loadpolicy="
;
static
const
expr
size_t
LOADPOLICYLEN
=
sizeof
(
LOADPOLICY
)
-
1
;
if
(
!
ign
&&
!
check_link_param_empty
(
first
,
last
,
LOADPOLICY
,
LOADPOLICYLEN
))
{
ign
=
true
;
...
...
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