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
e32ab13b
Commit
e32ab13b
authored
Apr 03, 2023
by
Dag Haavi Finstad
Committed by
Dridi Boukelmoune
Mar 29, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
h2: Relax "no //" URLs requirement
This requirement was dropped in the updated rfc 9113. Fixes: #3911
parent
3643aab3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
6 deletions
+5
-6
cache_http2_hpack.c
bin/varnishd/http2/cache_http2_hpack.c
+3
-4
a02027.vtc
bin/varnishtest/tests/a02027.vtc
+2
-2
No files found.
bin/varnishd/http2/cache_http2_hpack.c
View file @
e32ab13b
...
...
@@ -134,10 +134,9 @@ h2h_addhdr(struct h2h_decode *d, struct http *hp, char *b, size_t namelen,
n
=
HTTP_HDR_URL
;
disallow_empty
=
1
;
// rfc7540,l,3060,3071
if
(((
len
>
0
&&
*
b
!=
'/'
)
||
(
len
>
1
&&
*
(
b
+
1
)
==
'/'
))
&&
(
strncmp
(
b
,
"*"
,
len
)
!=
0
))
{
// rfc9113,l,2693,2705
if
(
len
>
0
&&
*
b
!=
'/'
&&
strncmp
(
b
,
"*"
,
len
)
!=
0
)
{
VSLb
(
hp
->
vsl
,
SLT_BogoHeader
,
"Illegal :path pseudo-header %.*s"
,
(
int
)
len
,
b
);
...
...
bin/varnishtest/tests/a02027.vtc
View file @
e32ab13b
...
...
@@ -22,8 +22,8 @@ client c1 {
client c1 {
stream 1 {
txreq -noadd -hdr ":authority" "foo.com" -hdr ":path" "//foo" -hdr ":scheme" "http" -hdr ":method" "GET"
rxr
st
expect r
st.err == PROTOCOL_ERROR
rxr
esp
expect r
esp.status == 200
} -run
} -run
...
...
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