Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
1b7e1d64
Commit
1b7e1d64
authored
Feb 25, 2017
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Forgot this part of last commit.
parent
7388e705
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
cache_http2_hpack.c
bin/varnishd/http2/cache_http2_hpack.c
+8
-1
No files found.
bin/varnishd/http2/cache_http2_hpack.c
View file @
1b7e1d64
...
...
@@ -57,10 +57,17 @@ h2h_checkhdr(const struct http *hp, const char *b, size_t namelen, size_t len)
/* Check valid name characters */
if
(
p
==
b
&&
*
p
==
':'
)
continue
;
/* pseudo-header */
if
(
vct_istchar
(
*
p
)
&&
(
!
isupper
(
*
p
)))
if
(
isupper
(
*
p
))
{
VSLb
(
hp
->
vsl
,
SLT_BogoHeader
,
"Illegal header name (upper-case): %.*s"
,
(
int
)(
len
>
20
?
20
:
len
),
b
);
return
(
H2CE_PROTOCOL_ERROR
);
}
if
(
vct_istchar
(
*
p
))
{
/* XXX: vct should have a proper class for
this avoiding two checks */
continue
;
}
VSLb
(
hp
->
vsl
,
SLT_BogoHeader
,
"Illegal header name: %.*s"
,
(
int
)(
len
>
20
?
20
:
len
),
b
);
...
...
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