blob: e2e6d8186b1aba10b559bf9a997fd6935b7bed9a [file] [log] [blame]
Amaury Denoyelled23435d2022-08-17 16:34:13 +02001varnishtest "HTTP/2 cookie concatenation"
2feature ignore_unknown_macro
3
4server s1 {
5 rxreq
6 expect req.http.cookie == "c1=foo; c2=bar; c3=baz"
7 txresp
8} -start
9
10haproxy h1 -conf {
11 defaults
12 mode http
13
14 frontend fe1
15 bind "fd@${fe1}" proto h2
16 use_backend be1
17
18 backend be1
19 server srv1 ${s1_addr}:${s1_port}
20} -start
21
22client c1 -connect ${h1_fe1_sock} {
23 txpri
24 stream 0 {
25 txsettings
26 rxsettings
27 txsettings -ack
28 rxsettings
29 expect settings.ack == true
30 } -run
31
32 stream 1 {
33 txreq \
34 -req "GET" \
35 -scheme "http" \
36 -url "/" \
37 -hdr "cookie" "c1=foo" \
38 -hdr "cookie" "c2=bar" \
39 -hdr "cookie" "c3=baz"
40 rxhdrs
41 } -run
42} -run