Commit 3c04f5c7 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Strip flags & final_flags when we switch to CONTINUATION headers.

Fixes #2934
parent d32c475d
......@@ -337,6 +337,8 @@ H2_Send(struct worker *wrk, struct h2_req *r2,
p += tf;
len -= tf;
ftyp = ftyp->continuation;
flags &= ftyp->flags;
final_flags &= ftyp->flags;
} while (!h2->error && len > 0);
}
}
varnishtest "Bug in CONTINUATION flags when no sendbody"
server s1 {
rxreq
expect req.proto == HTTP/1.1
txresp -hdr "Content-Type: text/plain" -hdrlen Foo 100
} -start
varnish v1 -cliok "param.set feature +http2"
varnish v1 -cliok "param.set debug +syncvsl"
varnish v1 -cliok "param.set debug +h2_nocheck"
varnish v1 -vcl+backend { } -start
client c1 {
stream 0 {
txsettings -framesize 64
rxsettings
} -run
stream 1 {
txreq -req HEAD
rxresp
expect resp.status == 200
expect resp.http.content-Type == "text/plain"
} -run
} -run
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment