summaryrefslogtreecommitdiff
path: root/regress/usr.sbin/relayd/args-http-change-cookie.pl
diff options
context:
space:
mode:
Diffstat (limited to 'regress/usr.sbin/relayd/args-http-change-cookie.pl')
-rw-r--r--regress/usr.sbin/relayd/args-http-change-cookie.pl27
1 files changed, 27 insertions, 0 deletions
diff --git a/regress/usr.sbin/relayd/args-http-change-cookie.pl b/regress/usr.sbin/relayd/args-http-change-cookie.pl
new file mode 100644
index 00000000000..ac0dd71c83f
--- /dev/null
+++ b/regress/usr.sbin/relayd/args-http-change-cookie.pl
@@ -0,0 +1,27 @@
+use strict;
+use warnings;
+
+my $name = "X-Set-Cookie";
+my %header = ("$name" => [ "test=a;", "test=b;" ]);
+our %args = (
+ client => {
+ func => \&http_client,
+ loggrep => {
+ qr/$name: test=c/ => 1,
+ }
+ },
+ relayd => {
+ protocol => [ "http",
+ 'match response header set "'.$name.'" value "test=c"',
+ ],
+ },
+ server => {
+ func => \&http_server,
+ header => \%header,
+ loggrep => {
+ qr/$name: test=a/ => 1
+ },
+ },
+);
+
+1;